react-gpt icon indicating copy to clipboard operation
react-gpt copied to clipboard

Support for googletag.PassbackSlot

Open iamdhrooov opened this issue 7 years ago • 2 comments

Do you have plans to add support for passback tags for third-party ad networks?

iamdhrooov avatar Jan 08 '18 11:01 iamdhrooov

None right now, but this seems like a feature that wouldn't be difficult to add: https://support.google.com/dfp_premium/answer/2811375?hl=en

Maybe by adding the following props to Bling:

<Bling 
    passbackUrl={`// String (required) URL`}
    passbackPageUrl={`// String (optional) URL`}
    passbackTargeting={
        // Array (optional)
        [{"color": "red"}, {"sport": ["rugby", "rowing"]}]  (like existing `targeting` prop)
    }
    passbackClickUrl={`// String (optional)`}
/>

Or with an optional passback object prop

<Bling passback={{
     url: string,
     pageUrl: string,
     targeting: array
     clickUrl: string 
  }} />

Which API looks better of the above 2?

potench avatar Jan 08 '18 19:01 potench

The second one looks better.

harish-aka-shivi avatar May 29 '19 09:05 harish-aka-shivi