Create action for campaign (deprecated)
DEPRECATED: Use POST /rest-api/action/create instead.
https://YOUR-NETWORK-DOMAIN/rest-api/campaign/{campaignId}/action/create.do DEPRECATED: Use POST /rest-api/action/create instead. Creates a new conversion action and associates it with the given campaign. The newly created action is returned in the response with its assigned ID and the computed action key for the specified campaign. All parameters except campaignId are optional and default to system defaults if omitted. The action is logged to the action log. Requires authentication.
Path Params
campaignId integer required
The numeric ID of the campaign to associate the action with. Used to compute the action key in the response.
2001 Form Params
name string required
Display name for the new action (e.g., 'Purchase', 'Sign Up'), up to 64 characters.
Purchase clickToConversionTimeFrame integer
Click-to-conversion attribution window duration, 0 to 255 units.
7 clickToConversionTimeFramePeriodType string
Time unit for clickToConversionTimeFrame. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR.
DAY viewToConversionTimeFrame integer
View-to-conversion attribution window duration, 0 to 255 units.
1 viewToConversionTimeFramePeriodType string
Time unit for viewToConversionTimeFrame. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR.
DAY applyAttributionWindowToServerToServer boolean
Whether the attribution window is also applied to server-to-server conversions. Server-to-server postbacks carry no impression or click identity of their own, so this is off for actions created before the option existed and on for new ones. Omit to keep the current value.
true rejectDuplicateConversions boolean
Whether a repeat of the same event on one click is thrown away. Off by default: repeats count. Applies to both server-to-server postbacks and the cookie pixel. A tracking-event action repeats by definition and is exempt regardless.
false defaultAttributionType string
Attribution type applied to a conversion that arrives with no attribution of its own — the last resort, below the action's tracking event, the partner's att= parameter and the classification carried by the tracking token. Allowed values: UNSPECIFIED, POST_CLICK, POST_VIEW (or integer IDs 0, 1, 2). Omit to keep the current value.
POST_CLICK Responses
200
Newly created action object with id, name, key, and conversion time frame settings
400
Bad request — wrong parameter types or campaign not found
401
Authentication error
403
Not enough permissions
404
Not found — resource does not exist