Submenu desarrolladores

Incorporate Advertising

 

Introduction

The purpose of this document is to provide a guide for a programmer to include Tuidd Integrated Advertising on their site.

 

Inclusion of the library

The following code must be included:

 

 

<script type="text/javascript" src="https:// <dominio>/jsservice/public/js/tuidd-emb-ad-v1.0.0.min.js />

 

 

Service Consumption

Include a container with the following example source code:

 

 

 

<div class='tuidd-embedded-advertising'

data-slot='457ay33i633992k13m817431v1z38hb2'

data-layout='300x250'

data-sitekey='18CBB71C-81FB-8B2D-5B64-E399275752AF'

data-source='ANY'

data-filter='{

"gender":"M",

"language":"es",

"age_range":[4,5,6],

"category":["18"],

"exception":["Nike"]}' >

</div>

 

 

Detail of the fields

 

Field

Type

Required

Description

class

String

Required

'tuidd-embedded-advertising'

data-layout

String

Required

Indicates the size of the ad. The possible values:

 

  • 300x250

  • 728x90

  • 160x600

  • 468x60

  • 120x600

  • 300x100

  • 88x31

  • 300x600

  • 336x280

  • 320x50

 

 

data-source

String

Optional

Restrict the origin of the advertising, to indicate if you want to receive your own advertising only or also from third parties.

The possible values are:

  • OWN : Own Advertisement.

  • THIRD_PARTY : Thirty party Advertisement

  • ANY : Any type of Advertisement.

If this field is not specified, the default value is ANY .

data-slot

String

Required

It is an identifier of the space destined for advertising.

data-sitekey

String

Required

Site advertising token, obtained from the Tuidd management portal, when the site is registered.

data-filter

Object

Optional

JSON with filters to customize the types of advertising to show.

 

 

Filter

It represents the characteristics that users must have in order to receive an advertisement or service.

The fields are:

 

Field

Type

Required

Description

gender

String

Optional

Posible Values:

M”: Male;

F”: Female;

 

Deafult value “todos”.

 

language

String

Optional

Language code refer to ISO 639-1.

Ej:

es”: Spanish

en”: English

pt”: Portuguese

 

age_range

Array

Optional

Age ranges, according to the following list:

  • 1: “0–14”,

  • 2: “15-18”,

  • 3: “18-24”,

  • 4: “25-34”,

  • 5: “35-44”,

  • 6: “45–59”,

  • 7: “60+”

 

category

Array

Optional

IDs of the items of advertising that I want to include. Only supports 3 IDs. From the third they will be ignored. See list of category down.

 

exception

Array

Optional

List of advertiser brands to be excepted.

Category

List of items for the advertising filter:

 

ID

Description

1

Public Administration

2

Agro and Industry

3

Animals and Pets

4

Art and Culture

5

Cars an Vehichles

6

Beauty and Fitness

7

Science and Technique

8

Computation and Electronics

9

Adult Content

10

Sports

11

Education and Professional Carrer

12

Entretainment

13

Gastronomy

14

Home and Garden

15

Clothing and Footwear

16

Real Estate and Construction

17

Internet y Telecomunications

18

Bussiness and Finances

19

News and Media

20

People and Society

21

Food products

22

Recreation and Hobbies

23

Social Network and Blog

24

Reference and Documentation

25

Health and Social Services

26

Shopping and Shops

27

Transport and logistics

28

Travel and Accommodation

29

Videogames

64

Others

Entity Pager Example