Macros

Info
Macros tab is used for customized tracking and advanced targeting. A macro is used as a key that represents a command or action. Using macros allows you to collect more data about clicks that your campaign generates based on interest.

In the future, it may happen that we will work with the companies that have similar macros as ours. In this case, we would have to do a “replace” and add a certain prefix to the macros.

System Macros

System macros are applicable to title, description, description2, tracking_pixel and landing_url.

When editing a Creative in the Campaigns tab, there is an option to quickly add macros in the landing_url and tracking_pixel frames.


NameDescription
AB_TEST_IDUnique ID of AB test created by Ocamba platform.
AB_TEST_VARIATION_IDUnique ID of AB test variation created by Ocamba platform.
ASNAutonomous System Number.
BID_PRICEReal-time CPC/CPM bidding offer for a specific campaign.
CITY_GEONAME_IDCity GeoName ID.
CITY_NAMECity name.
CLICK_IDUnique ID of click which is used to track down particular click. Must be used in conversion tracking.
CONVERSION_BIDConversion value.
CONVERSION_CURRENCYThe currency of the conversion value.
CONVERSION_IDDEPRECATED - Unique ID created by Ocamba platform for each particular http request, it contains SESSION_ID with necessary campaign data, has fixed string length of 32 chars. Must be used in conversion tracking.
COUNTRY_CODECountry code.
COUNTRY_NAMECountry name.
DEVICE_IDID extracted from incoming http request. In the rtb request
it is defined as RtbRequest.device.ifa.
DEVICE_IPThe IP address closest to the device.
ISPInternet Service Provider.
KEYWORDA keyword that describes the ad page.
OFFER_ID
(creative_id)
A unique ID created by the Ocamba platform for each
offer (creative).
PRICE_PAIDThe price paid for this event (CPC, CPM, CPA)
PUBLISHER_IDDEPRECATED - Unique ID of zone created by Ocamba platform, ID must be number.
REGION_CODERegion code.
REGION_GEONAME_IDRegion GeoName ID.
REGION_NAMERegion name.
SESSION_IDThe unique ID created by the Ocamba platform for each specific
http request. It has a fixed string length of 11 characters.
SITE_DOMAINDomain extracted from incoming http request. In the rtb request,
it is defined as RtbRequest.site.domain.
SITE_IDID of the Exchange site.
SUBIDDEPRECATED - ID extracted from incoming http request. In rtb request it is defined as RtbRequest.site.publisher.id or RtbRequest.app.bundle.
SUB_IDID extracted from incoming http request. In the request, rtb is
defined as RtbRequest.site.publisher.id or RtbRequest.app.bundle.
ZONE_IDThe unique zone ID created by the Ocamba platform.
This ID must be a number.

User Defined Macros

User defined are only applicable to title and description. They cannot be applied to landing_url and tracking_pixel.

The landing url is specific and must be accurate because of its integrity and if something is added to the wrong address, they are sensitive parts of the creative. Landing url and tracking pixels have system macros that are automatically listed in widgets.

User defined macros are defined by users and can be defined by country or language (they cannot be both at the same time).

Example:
If you select a campaign (e.g. Company Test) and later, go to a zone (e.g. Test | Native | None) we copy the Ad Tag Generator and trigger it from the browser to get a response.
Since we are using one Company Test campaign in the URL we will enter the cmp = id of the campaign next to the Ad Tag Generator.
Response will return the value in your browser’s language because the macro is triggered based on the data retrieved by the IP address of the browser.

It is possible to create macros by country and by language.
When creating, select the desired country, enter the value and confirm.


Dynamic Macros

Example: If you want a macro per app, you need to drag the APPLICATION field to select the application (e.g. balkan-danas) in the Records segment and enter a value in the field on the right that will replace that macro with the entered value.

Dynamic macros are currently not applicable to campaigns, but only to exchanges.


Add a Dynamic Macros

Please follow this step-by-step guide to add Dynamic Macros:

Step 1. Select the Macros tab and go to the Dynamic macros tab

Step 2. Add a new Macro

Step 3. Fill in the information required:

  • Add a name for your dynamic macro
  • Add description
  • Fields: It is necessary to select desired fields by dragging them into the “Drop here” field.
Info
Note: Dynamic macros work on a specific field, and combining several fields (maximum 3) is possible.
  • Add default value
  • Records: The record is based on account of the selected fields. Therefore, which fields are selected above will be able to be set in the records.
Info
Note: There is a relationship between ab tests and variations. If you select an ab test for variations in the records, only those that belong to that AB test will be displayed.

Image

On This Page