Skip to content

Updating Ad Config

Compare
Choose a tag to compare
@pahund pahund released this 16 Jun 09:46
· 116 commits to master since this release

You can now update the AdvertisingProvider by re-rendering it with a different configuration prop than before.

When the AdvertisingProvider receives a new config prop, it will automatically tear down GPT and Prebid and set them up again with the updated configuration, causing all the ad slots in the container to get refreshed with new ads according to the new config.

Thanks Jason Li for implementing this!

Breaking Change

In previous versions, if the config prop for the AdvertisingProvider changed, this was ignored,
now it causes GPT and Prebid to be re-initialized and ad slots to be refreshed with the updated config.

While we believe this to be the desired effect, some users may depend on the old “ignorant” behavior,
hence we decided to roll out this change as a major release.