You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on changing the localStorage city value, the pageTargeting is not changing dynamically .
it is effecting after hard refreshing the page(this is due app.config() is re initializing at the time city value taking). How i can change pageTargeting from my controller.
The text was updated successfully, but these errors were encountered:
Just changing the localStorage setting won't update unless you have some listener. As of now it's not possible to change page targeting during runtime, but I guess you could do something like
DoubleClickProvider.defineSlot('/530209488/Parties_1', [300, 100], 'div-gpt-ad-1470051144620-0')
.defineSlot('/530209488/Parties_2', [300, 100], 'div-gpt-ad-1470051144620-1')
.defineSlot('/530209488/Parties_3', [300, 100], 'div-gpt-ad-1470051144620-2');
DoubleClickProvider.setPageTargeting('city',localStorage.getItem('DFTcity'));
on changing the localStorage city value, the pageTargeting is not changing dynamically .
it is effecting after hard refreshing the page(this is due app.config() is re initializing at the time city value taking). How i can change pageTargeting from my controller.
The text was updated successfully, but these errors were encountered: