Update Ab test variation
https://api.ocamba.com/v2/adex/campaign-ab-tests/{id}/variations/{variation_id}
https://api.ocamba.com/v2/adex/campaign-ab-tests/{id}/variations/{variation_id}
Updates the specific Ab test variation by setting the values of the parameters passed. Any parameters not provided will be left unchanged
Name
Descriptionidstringrequired
Unique ab test id.Example: 1411
Name
Descriptionnamestringrequired
Name of AB test variation.Example: My Variation
settingsdynamic-native-creative
web-push-object-creative
web-push-external-demand-creative
dynamic-native-external-demand-creativerequired
Values to override in control variation (original creative). Settings type can be one of: Web Push Object Creative, Dynamic Native Creative, Web Push External Demand Creative and Dynamic Native External Demant Creative.web-push-object-creative
web-push-external-demand-creative
dynamic-native-external-demand-creativerequired
Creative - Dynamic Native
Name
Descriptionaddressstring
AddressExample: Dragise Misovica 163B
advertiser_domainstring (url)
Valid URL.Example: https://example.com
bannerobject
Name
Descriptionkeystring
Language code supported by the Ocamba platform (ISO 639-2, 2 letter language codes).Example: en
valuestring
URL, max 400 characters.Example: http://example.domen/image/en.jpg
bundle_idstring
Maximum 100 characters.Example: 1017
ctatextstring
Descriptive text describing a ‘call to action’ button for the destination URL.Example: 1
descriptionobject
Name
Descriptionkeystring
Language code supported by the Ocamba platform (ISO 639-2, 2 letter language codes), key "en" is required.Example: en
valuestring
URL, max 400 characters.Example: en description
description_2object
Name
Descriptionkeystring
Language code supported by the Ocamba platform (ISO 639-2, 2 letter language codes), key "en" is required.Example: en
valuestring
URL, max 400 characters.Example: en description2
display_urlstring (url)
Valid URL.Example: https://example.com
downloadsinteger
Number downloads/installs of this number product.Example: 5
html5string
HTML5 desc.Example:
Test
imageobject
Name
Descriptionkeystring
Language code supported by the Ocamba platform (ISO 639-2, 2 letter language codes), key "en" is required.Example: en
valuestring
URL, max 400 characters.Example: http://example.domen/image/en.jpg
landing_urlstring (url)
Valid URL, max 2048 chars.Example: https://example.com
likesinteger
Number of social ratings or “likes” of the product being offered to the user.Example: 10
namestring
Creative Name is a user-provided keyword that will be your main keyword in search and tracking. Maximum 100 chars.Example: Demo_dynamic_native
phonestring
Phone number.Example: 032456312
postbackinteger
Describes status of postback.Example: 1
Possible values: 0 | 1
Default: 1
pricefloat
Price for product / app / in-app purchase.Example: 12.99
ratinginteger
Rating of the product being offered to the user.sale_pricefloat
Sale price that can be used together with price to indicate a discounted price compared to a regular price.Example: 9.99
sponsoredobject
Name
Descriptionkeystring
Language code supported by the Ocamba platform (ISO 639-2, 2 letter language codes), key "en" is required.Example: en
valuestring
URL, max 100 characters.Example: en sponsor
statusstring
Describe dynamic native status.Example: active
Possible values: active | inactive
Default: active
targetstring
Browser related method for ad appearance.Example: _top
Possible values: _blank | _self | _parent | _top
third_party_codestring
3rd Party code desc.Example:Test
titleobject
Name
Descriptionkeystring
Language code supported by the Ocamba platform (ISO 639-2, 2 letter language codes), key "en" is required.Example: en
valuestring
URL, max 600 characters.Example: en_demo_title
tracking_pixels[ string ]
Uses for pixel tracking.Example: https://example.com?${SESSION_ID}${DEVICE_ID}
typestring
Describes type of the dynamic native.Example: dynamic-native
Default: dynamic-native
Creative - Web Push Object
Name
Descriptionactions[ action ]
An array of max 3 items, every item in the array must be an object described in the ACTIONS OBJECT section.Action
Name
Descriptionactionstring
DEPRECATED. Lowercase, max 30 chars, submit or cancel for exampleiconstring
Valid URL, max 200 chars, must start with https://Example: https://someurl.com/favicon.ico
titleobject
Name
Descriptionkeystring
Language code supported by the Ocamba platform (ISO 639-2, 2 letter language codes), key "en" is required.Example: en
valuestring
URL, max 200 characters.Example: en_demo_title
urlstring
Valid URL, max 500 chars, must start with http:// or https://badgestring
Monochromatic mini-icon which portrays to user source where he subscribed in the first place (https:// allowed). Valid URL, max 500 chars.Example: https://example.com
bodyobject
Name
Descriptionkeystring
Language code supported by the Ocamba platform (ISO 639-2, 2 letter language codes), key "en" is required.Example: en
valuestring
URL, max 200 characters.Example: Samsung Galaxy J5 smartphone was launched in June 2015
iconstring (url)
Icon address that will be a secondary visual attribute presented to the user (https:// allowed). Valid URL, max 500 chars.Example: https://example_icon.com
imageobject
Name
Descriptionkeystring
Language code supported by the Ocamba platform (ISO 639-2, 2 letter language codes), key "en" is required.Example: en
valuestring
URL, max 200 characters.Example: http://example.domen/image/en.jpg
landing_urlstring (url)
Page address where the user will land after clicking on it (http:// allowed). Valid URL, max 2048 chars.Example: https://example.com
namestring
Creative Name is a user-provided keyword that will be your main keyword in search and tracking. Maximum 100 chars.Example: Demo_web_push_object
postbackinteger
Describes status of postback.Example: 1
Possible values: 0 | 1
Default: 1
renotifyinteger
Replacing old notification with the new one using the silent method. Applicable only with tag option.Example: 1
Possible values: 0 | 1
require_interactioninteger
Demand action execution from the user. Applicable only for desktop users.Example: 1
Possible values: 0 | 1
silentinteger
Serving notification without sound and vibration. Applicable only to mobile devices.Example: 1
Possible values: 0 | 1
statusstring
Describe dynamic native status.Example: active
Possible values: active | inactive
Default: active
tagstring
The tag option enables the removal of notifications with the same tag which were delivered earlier. Max 100 chars. Required if renotify is set to 1 (true)Example: .
titleobject
Name
Descriptionkeystring
Language code supported by the Ocamba platform (ISO 639-2, 2 letter language codes), key "en" is required.Example: en
valuestring
URL, max 200 characters.Example: en_demo_title
typestring
Describes type of the web push object.Example: web-push-object
Default: web-push-object
vibrationstring
Two vibration pulses with customizable length and pause between them, described in milliseconds (200,100,200 formats), will start when a notification is displayed. Applicable only for Android users. Max 50 chars, valid vibration pattern.Example: 20,600,400
Creative - Web Push External Demand
Name
Descriptionactions[ action ]
An array of max 3 items, every item in the array must be an object described in the ACTIONS OBJECT section.badgestring
Monochromatic mini-icon which portrays to user source where he subscribed in the first place (https:// allowed). Valid URL, max 500 chars.Example: https://example.com
bodyobject
Name
Descriptionkeystring
Language code supported by the Ocamba platform (ISO 639-2, 2 letter language codes), key "en" is required.Example: en
valuestring
URL, max 200 characters.Example: Samsung Galaxy J5 smartphone was launched in June 2015
iconstring (url)
Icon address that will be a secondary visual attribute presented to the user (https:// allowed). Valid URL, max 500 chars.Example: https://example_icon.com
imageobject
Name
Descriptionkeystring
Language code supported by the Ocamba platform (ISO 639-2, 2 letter language codes), key "en" is required.Example: en
valuestring
URL, max 200 characters.Example: http://example.domen/image/en.jpg
landing_urlstring (url)
Page address where the user will land after clicking on it (http:// allowed). Valid URL, max 2048 chars.Example: https://example.com
namestring
Creative Name is a user-provided keyword that will be your main keyword in search and tracking. Maximum 100 chars.Example: Demo_web_push_object
overrideoverride-v2
Overide object.Override
Name
Descriptionbodyinteger
Describes status of body.Example: 1
Possible values: 0 | 1
iconinteger
Describes status of icon.Example: 1
Possible values: 0 | 1
imageinteger
Describes status of image.Example: 1
Possible values: 0 | 1
landing_urlinteger
Describes status of landing_url.Example: 1
Possible values: 0 | 1
titleinteger
Describes status of title.Example: 1
Possible values: 0 | 1
postbackinteger
Describes status of postback.Example: 1
Possible values: 0 | 1
Default: 1
renotifyinteger
Replacing old notification with the new one using the silent method. Applicable only with tag option.Example: 1
Possible values: 0 | 1
require_interactioninteger
Demand action execution from the user. Applicable only for desktop users.Example: 1
Possible values: 0 | 1
silentinteger
Serving notification without sound and vibration. Applicable only to mobile devices.Example: 1
Possible values: 0 | 1
statusstring
Describe dynamic native status.Example: active
Possible values: active | inactive
Default: active
tagstring
The tag option enables the removal of notifications with the same tag which were delivered earlier. Max 100 chars. Required if renotify is set to 1 (true)Example: .
titleobject
Name
Descriptionkeystring
Language code supported by the Ocamba platform (ISO 639-2, 2 letter language codes), key "en" is required.Example: en
valuestring
URL, max 200 characters.Example: en_demo_title
typestring
Describes type of the web push object.Example: web-push-object
Default: web-push-object
vibrationstring
Two vibration pulses with customizable length and pause between them, described in milliseconds (200,100,200 formats), will start when a notification is displayed. Applicable only for Android users. Max 50 chars, valid vibration pattern.Example: 20,600,400
Creative - Dynamic Native External Demand
Name
Descriptionaddressstring
AddressExample: Dragise Misovica 163B
advertiser_domainstring (url)
Valid URL.Example: https://example.com
bannerobject
Name
Descriptionkeystring
Language code supported by the Ocamba platform (ISO 639-2, 2 letter language codes).Example: en
valuestring
URL, max 400 characters.Example: http://example.domen/image/en.jpg
bundle_idstring
Maximum 100 characters.ctatextstring
descriptive text describing a ‘call to action’ button for the destination URL.Example: 1
descriptionobject
Name
Descriptionkeystring
Language code supported by the Ocamba platform (ISO 639-2, 2 letter language codes), key "en" is required.Example: en
valuestring
URL, max 400 characters.Example: en description
description_2object
Name
Descriptionkeystring
Language code supported by the Ocamba platform (ISO 639-2, 2 letter language codes), key "en" is required.Example: en
valuestring
URL, max 400 characters.Example: en description2
display_urlstring (url)
Valid URL.Example: https://example.com
downloadsinteger
Number downloads/installs of this number product.Example: 9
html5string
HTML5 desc.Example: example
imageobject
Name
Descriptionkeystring
Language code supported by the Ocamba platform (ISO 639-2, 2 letter language codes), key "en" is required.Example: en
valuestring
URL, max 400 characters.Example: http://example.domen/image/en.jpg
landing_urlstring (url)
Valid URL, max 2048 chars.Example: https://example.com
likesinteger
Number of social ratings or “likes” of the product being offered to the user.Example: 35
namestring
Creative Name is a user-provided keyword that will be your main keyword in search and tracking. Maximum 100 chars.Example: Demo_dynamic_native
overrideoverride-v2
Overide object.phonestring
Phone number.Example: 032456312
postbackinteger
Describes status of postback.Example: 1
Possible values: 0 | 1
Default: 1
pricefloat
Price for product / app / in-app purchase.Example: 12.99
ratinginteger
Rating of the product being offered to the user.Example: 1
sale_pricefloat
Sale price that can be used together with price to indicate a discounted price compared to a regular price.Example: 9.99
sponsoredobject
Name
Descriptionkeystring
Language code supported by the Ocamba platform (ISO 639-2, 2 letter language codes), key "en" is required.Example: en
valuestring
URL, max 100 characters.Example: en sponsor
statusstring
Describe dynamic native status.Example: active
Possible values: active | inactive
Default: active
targetstring
Browser related method for ad appearance.Example: _top
Possible values: _blank | _self | _parent | _top
third_party_codestring
3rd Party code desc.Example: example
titleobject
Name
Descriptionkeystring
Language code supported by the Ocamba platform (ISO 639-2, 2 letter language codes), key "en" is required.Example: en
valuestring
URL, max 600 characters.Example: en_demo_title
tracking_pixels[ string ]
Uses for pixel tracking.Example: https://example.com?${SESSION_ID}${DEVICE_ID}
typestring
Describes type of the dynamic native.Example: dynamic-native
Default: dynamic-native
204 - No Content
note
1 At least one of the updatable fields should be sent via HTTP body in order to change the current state of the campaign ab test variation.
tip
1 If you don't know the campaign ab test variation id, read the campaign ab tests to find it.