@freestar/pubfig-adslot-angular-component
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -15,2 +15,3 @@ (function (global, factory) { | ||
this.slotId = ''; | ||
this.targeting = []; | ||
this.classList = ''; | ||
@@ -125,6 +126,11 @@ this.channel = null; | ||
function () { | ||
return { | ||
/** @type {?} */ | ||
var adUnit = { | ||
placementName: this.placementName, | ||
slotId: this.slotId | ||
}; | ||
if (this.targeting.length) { | ||
adUnit.targeting = this.targeting; | ||
} | ||
return adUnit; | ||
}; | ||
@@ -178,2 +184,3 @@ /** | ||
slotId: [{ type: core.Input }], | ||
targeting: [{ type: core.Input }], | ||
classList: [{ type: core.Input }], | ||
@@ -192,2 +199,4 @@ channel: [{ type: core.Input }], | ||
/** @type {?} */ | ||
FreestarAdSlot.prototype.targeting; | ||
/** @type {?} */ | ||
FreestarAdSlot.prototype.classList; | ||
@@ -194,0 +203,0 @@ /** @type {?} */ |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"private": false, | ||
@@ -12,0 +12,0 @@ "repository": { |
@@ -39,6 +39,7 @@ # Freestar Pubfig Ad Slot Angular Component | ||
slotId='div-gpt-ad-leaderboard-multi' | ||
[targeting]='["value1", "value2"]' | ||
classList='m-30 p-15 b-thin-red' | ||
channel='custom_channel' | ||
adRefresh={{adRefreshCount}} | ||
(messageEmitter)="onMessageHook($event)" | ||
(messageEmitter)='onMessageHook($event)' | ||
></freestar-ad-slot> | ||
@@ -82,2 +83,5 @@ <button (click)='onAdRefresh()'>Trigger Refresh</button>` | ||
**targeting** | ||
An *optional* array of the ad unit's `targeting` values. | ||
**channel** | ||
@@ -91,1 +95,12 @@ An *optional* string of a custom channel to use. | ||
An *optional* number bound to the ad refresh. You can increment this value to trigger a refresh of the ad slot. | ||
### Glossary | ||
**placementName** | ||
A value acquired from Google Ad Manager (previously known as DFP/Adx), which will be provided by Freestar. | ||
**slotId** | ||
A value used for the DOM `<div>` id for the ad unit to render within. | ||
**targeting** | ||
A set of targeting values for the ad unit placement. |
11563
225
104