goodmodule/react-google-publisher-tag

Ad Refresh

trakout opened this issue · 3 comments

Wondering, did you have any plans for refreshSlot()?

Hi @trakout
There is this option already
you can use ref here is small example

export default Example extends Component {
  refresh() {
    this.refs.ad1.refreshSlot();
  }

  render() {
    return(
      <AD path="/network-code/ad-code" ref="ad1" />
    );
  }
}

@seeden awesome, thanks!

anhdn commented

Hi @seeden , can i change targeting object when i use "this.refs.ad1.refreshSlot()"?