Ads

  • iOS
  • watchOS
  • tvOS
 

Foreword

AT Internet’s SDK offers the measurement of your in-app ads so that you can evaluate their performance.

The goal is to measure “clicks” and impressions of self-promotion ad campaigns, as well as third-party campaigns displayed on your app, and then analyse this information.

 

Get off to a good start

Once your tag is initialised, you can start tagging your in-app ads.

Dans le cas d’un projet Swift, veillez à importer le module SmartTracker (ou tvOSTracker / watchOSTracker si votre target est une Apple TV / Apple watch) dans votre ViewController. Dans le cas d’un projet Objective-C, veillez à importer les entêtes SmartTracker-Swift.h

 

Tagging

To tag your ads, the tracker exposes two properties, publishers and selfPromotions, according to the type of ad to be measured.

These two properties themselves expose two methods:

  • add
  • sendImpressions

The add method allows you to add an ad tag and put it in standby for send. This method returns an object with type Publisher or SelfPromotion according to the case in question.

To send the defined information, you must call the sendTouch or sendImpression method of your object, based on the type of action taken by the user, or call the Tracker’dispatch method.

Please note, calling the methods sendTouch and sendImpression modifies the object’s action property.

The sendImpressions method allows sending of all information for ads whose action is defined as Impression.

 

Tagging examples

  1. Tagging an ad impression for a third-party

  2. Tagging an ad “click” for a third-party

  3. Tagging a self-promotion campaign impression

  4. Tagging an self-promotion campaign “click”

  5. Tagging several ads and sending impressions

  6. Tagging several self-promotion campaigns and sending impressions

  7. Tagging self-promotion ads and campaigns and using dispatcher

  8. Tagging self-promotion ads and campaigns and adding screen information

  9. Tagging a screen impression

 

Publisher class

 

Properties

Nom Type Valeur par défaut Description
campaignId String Chaîne vide Gets or sets the campaign name (ex: [label] or id[label])
creation String? nil Gets or sets the creative name (ex: [label] or id[label])
variant String? nil Gets or sets the variant name (ex: [label] or id[label])
format String? nil Gets or sets the format name (predefined or custom ID. ex: [120×40])
generalPlacement String? nil Gets or sets the general placement (textual ID predefined by us, to be formatted as [label])
detailedPlacement String? nil Gets or sets the detailed placement (ex: [label] or id[label])
advertiserId String? nil Gets or sets the advertiser ID (ex: id[label])
url String? nil Gets or sets the URL to which the link points. The URL is necessarily linked to the advertiser ID
action Enum OnAppAd.Action.View Obtient ou définit le type d’action (View ou Touch)
 

Methods

Nom Type de retour Description
sendTouch void Sends a hit indicating that an ad was touched
sendImpression void Sends a hit indicating that an ad was seen
 

SelfPromotion class

 

Properties

Nom Type Valeur par défaut Description

adId

Int 0 Gets or sets the ad ID
format String? nil Gets or sets the format name (predefined or custom ID. ex: [120×40])
productId String? nil Gets or sets the self-promoted product in question, that can be found in the order (Subject to the SalesTracker option)
action Enum OnAppAd.Action.View Gets or sets the action type (View or Touch)
 

Methods

Nom Type de retour Description
sendTouch void Sends a hit indicating that a self-promotion campaign was touched
sendImpression void Sends a hit indicating that a self-promotion campaign was seen
Was this post helpful?
Yes
No
Last update: 13/12/2016