Forum Moderators: martinibuster

Message Too Old, No Replies

First Party Adsense cookie

         

yaashul

6:15 pm on Sep 16, 2020 (gmt 0)

10+ Year Member Top Contributors Of The Month



You can now choose whether Google can use first-party cookies on your site. Google may use first-party cookies when third-party cookies are not available. Allowing first-party cookies from Google may increase your revenue because it enables features like frequency capping on ads and allows ads with a frequency cap to serve on your site.

We've added a new control to the "Ad serving" tab in your account to let you choose whether you want to allow first-party cookies. The control is available from today but your choice won't affect ad serving until October 16, 2020.
Source: [support.google.com...]

robzilla

7:32 pm on Sep 16, 2020 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Find it via Blocking controls > Content > All sites > Manage Ad Serving. The default setting is "Allowed".

JorgeV

2:29 pm on Sep 17, 2020 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member Top Contributors Of The Month



Hello,

This won't change anything.

Browsers / Extension which are blocking third party cookies, are also blocking adsbygoogle.js .

In my opinion, this is just another trick from Google/Adsense regarding GDRP / ePrivacy Directive (cookie law). If their cookies are first party, then they can claim they are not liable, and that it's your fault, for not obtaining the explicit consent of visitors, because this is a script, running on your page, which is creating a cookie attached to your domain.

edit: didn't you notice how, since some weeks, a lot more sites are now showing a modal message box, before injecting ads?

tangor

4:50 am on Sep 21, 2020 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Is g injecting the first party cookie on your site? Just curious how all this stuff works.

JorgeV

10:51 am on Sep 21, 2020 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member Top Contributors Of The Month



Hello,

There are two ways to set (and read) a cookie.

- The server can set the cookie in the sever headers.

- A cookie can also be set in javascript.

In both cases, the cookie can only be attached to the domain name of the page.

So, if a piece of javascript is running on your page, it can set and access cookies attached to your domain name.

Part of Adsense 's javascript code is running on your page. So this piece of code, can also write/read cookies from your domain (first party cookie). Another part of the Adsense's javascript is executed within an iframe from a Google's domain. This other piece of code, can only write cookies attache to Google's domain (third party).

Indirectly related, this is the same method exploited for XSS hacks.

tangor

7:06 am on Sep 22, 2020 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks for clarifying something I thought:

js is required.

If you don't have/use it, no "first party". :)