Skip to content

Opera Marketing Corporation Event Integration Guildline

Opera Event Postback Integrate

Events

EventDescriptionRecommended parametersRequiredEvent Name
App OpenedWhen a user Open/Launch app success. Opera highly recommends measuring apps important to your business.Mandatoryapp_opened
View ItemWhen a visitor views a specific page .(Opera recommends measuring pages important to your business such as, Item / product page , Promote page , Category page.)content_type, quantity, description, content_id, currency, valueMandatoryview_content
Add to CartWhen a visitor adds an item to the cart.content_type, quantity, description, content_id, currency, valueMandatoryadd_to_cart
Complete PurchaseWhen a visitor completed the purchase. Opera recommends using this event when placing an order and making a purchase are the same.content_type, quantity, description, content_id, currency, valueMandatorypurchase
Custom EventsImportant events for your business to succeed.Optionalyour_custom_event

Note: By default, In-app events S2S/MMP postback should bring User ID.

Events Value

View_content Event Parameter definition

EventEvent Value Recommended parametersDescriptionRequiredeg.JSON String
‘View_content’ Event Value parameterscontent_typeproduct tags, eg. Mall /seller product / Promotional / TopSales /MandatoryMall / Top /Hot / free shipping etc.{ "event_value": [ { "content_type": "hot", "quantity": "13", "description": "Tubo Par Slider Protetor Carenagem Motor Tanque Carbono Pedal Moto para Mata Cachorro", "content_id": "612406277-21297620739", "currency": "BRL", "content_value": "25.90" }, { "content_type": "hot", "quantity": "13", "description": "Tubo Par Slider Protetor Carenagem Motor Tanque Carbono Pedal Moto para Mata Cachorro", "content_id": "612406277-21297620739", "currency": "BRL", "content_value": "25.90" } ] }
content_idProduct Unique ID, used to mapping with Product Feeds; If product id is multilevel index, like ‘seller_id’-’product_id’, the value could be ‘’MandatoryUnique product ID = 21297620739 Multi ID = 612406277/21297620739
descriptionContent Description,OptionalProduct title
content_valueSale PriceOptional
currencySale Price CurrencyOptionalUSD/IDR
quantityStock Available QuantityOptional‘13’

Add_to_cart Event Parameter definition

EventEvent Value Recommended parametersDescriptionRequiredeg.JSON String
‘add_to_cart’ Event Value parameterscontent_typeproduct tags, eg. Mall /seller product / Promotional / TopSales /MandatoryMall / Top /Hot / free shipping etc.{ "event_value": [ { "content_type": "hot", "quantity": "13", "description": "Tubo Par Slider Protetor Carenagem Motor Tanque Carbono Pedal Moto para Mata Cachorro", "content_id": "612406277-21297620739", "currency": "BRL", "content_value": "25.90" }, { "content_type": "hot", "quantity": "13", "description": "Tubo Par Slider Protetor Carenagem Motor Tanque Carbono Pedal Moto para Mata Cachorro", "content_id": "612406277-21297620739", "currency": "BRL", "content_value": "25.90" } ] }
content_idProduct Unique ID, used to mapping with Product Feeds; If product id is multilevel index, like ‘seller_id’-’product_id’, the value could be ‘’MandatoryUnique product ID = 21297620739 Multi ID = 612406277/21297620739
descriptionContent Description,OptionalProduct title
content_valueSale PriceOptional
currencySale Price CurrencyOptionalUSD/IDR
quantityStock Available QuantityOptional‘13’

Purchase Event Parameter definition

EventEvent Value Recommended parametersDescriptionRequiredeg.JSON String
‘purchase’ Event Value parameterscontent_typeproduct tags, eg. Mall /seller product / Promotional / TopSales /MandatoryMall / Top /Hot / free shipping etc.{ "event_value": [ { "content_type": "hot", "quantity": "13", "description": "Tubo Par Slider Protetor Carenagem Motor Tanque Carbono Pedal Moto para Mata Cachorro", "content_id": "612406277-21297620739", "currency": "BRL", "content_value": "25.90" }, { "content_type": "hot", "quantity": "13", "description": "Tubo Par Slider Protetor Carenagem Motor Tanque Carbono Pedal Moto para Mata Cachorro", "content_id": "612406277-21297620739", "currency": "BRL", "content_value": "25.90" } ] }
content_idProduct Unique ID, used to mapping with Product Feeds; If product id is multilevel index, like ‘seller_id’-’product_id’, the value could be ‘’MandatoryUnique product ID = 21297620739 Multi ID = 612406277/21297620739
descriptionContent Description,MandatoryProduct title
content_valueSale Price ( Purchase price )MandatoryPurchase Price, Known as GMV per item
currencySale Price CurrencyMandatoryUSD/IDR
quantityStock Available QuantityMandatory‘13’

S2S Event Postback Integrate

cvidEvent NameEvent ValueRealtimeNote
Provided by Operaapp_openedNoneYes
Provided by Operaview_contentYesYes
Provided by Operaadd_to_cartYesYes
Provided by OperapurchaseYesYes
Provided by Operayour_custom_eventYesYes

Postback API

Using the HTTP POST Method to carry event information.

Endpoint

https://cb.adx.opera.com/marketing/pb?cvid=channel_id

Note: Channel id is separated by Opera.

Body parameter

ParametersTypeDescriptionMandatory
cvidStringThe conversion ID allocated by OperaYES
click_idStringAn ID generated by OperaAds side dynamically (different click_id for different AD requests.) and put in the click-through URL. Advertisers need to get the click_id from the click-through URL, put it in this click_id parameter without any change and post back to OperaAds Server.YES
gaidStringAndroid Advertising IDYES
idfaStringApple advertising ID ( If cannot get IDFA, could use IDFV instead)YES
event_nameStringEvent name: install, register, login, purchase, place_order. If advertisers need more customized events, please contact Opera Ads to create.YES
event_valueJSON StringJSON StringYes

Example

POST https://cb.adx.opera.com/marketing/pb?cvid=129874392442

Body:

{
    "cvid": "12987439244672",
    "event_name": "purchase",
    "event_value": ”[
        {
            "content_type": "hot",
            "quantity": "13",
            "description": "Tubo Par Slider Protetor Carenagem Motor Tanque Carbono Pedal Moto para Mata Cachorro",
            "content_id": "612406277-21297620739",
            "currency": "BRL",
            "content_value": "25.90"
        },
        {
            "content_type": "hot",
            "quantity": "13",
            "description": "Tubo Par Slider Protetor Carenagem Motor Tanque Carbono Pedal Moto para Mata Cachorro",
            "content_id": "612406277-21297620739",
            "currency": "BRL",
            "content_value": "25.90"
        }
    ]“,
    "click_id": "opera_click_id",
    "idfa": "",
    "gaid": "a3c9eb3b-d9d13-45a3-96d9-2c8c50cacd30"
}

HTTP Response

HTTP Status Code is 200 if the request is processed.

Response Body HTTP Body in JSON format:

FieldTypeDescription
statusint0 means report success, otherwise failure
messagestring“ok” or the reason for failure.
{
    "status": 0,
    "message": "ok"
}

Note :
content_id normally known as Product_id, JSON string may be different from above example, insert Product Profile just work for us