What are cookies?
Cookies are tiny text files that are stored on a user's browser. Most cookies contain a unique identifier called a cookie ID: a string of characters that websites and servers associate with the browser on which the cookie is stored. This allows websites and servers to distinguish the browser from other browsers that store different cookies, and to recognize each browser by its unique cookie ID.
Cookies are widely used by websites and servers to provide many of the basic services we find online. If you shop on a website, a cookie allows the website to remember which items you've added to your virtual shopping cart. If you set preferences on a website, a cookie allows the website to remember your preferences the next time you visit. Or if you sign into a website, the website might use a cookie to recognize your browser later on, so that you don't have to sign in again. Cookies also allow websites to collect data about user activity, such as how many unique visitors a page receives per month. All these applications depend on the information stored in cookies.
How does AdSense use cookies?
AdSense uses cookies to improve advertising. Some common applications are to target advertising based on what's relevant to a user, to improve reporting on campaign performance, and to avoid showing ads the user has already seen.
Cookies themselves contain no personally identifiable information. Depending on the publisher’s and the user’s settings, information associated with cookies used in advertising may be added to the user’s Google Account.
Opting out of ads personalization
If a user opts out of ads personalization using Google's Ads Settings, they will no longer receive personalized advertising from Google.
When does AdSense send cookies to a browser?
AdSense sends a cookie to the user's browser after any impression, click, or other activity that results in a call to our servers. If the browser accepts the cookie, the cookie is stored on the browser.
Most commonly, AdSense sends a cookie to the browser when a user visits a page that shows Google ads. Pages with Google ads include ad tags that instruct browsers to request ad content from our servers. When the server delivers the ad content, it also sends a cookie. But a page doesn’t have to show Google ads for this to happen; it just needs to include our ad tags, which might load a click tracker or impression pixel instead.
Notify users about cookies
All publishers must clearly display a privacy policy notifying visitors about the site's use of cookies. In addition, all publishers must comply with applicable laws regarding the collection of information from site visitors.
Third-party and first-party cookies
Cookies are categorized as third-party or first-party depending on whether they are associated with the domain of the site a user visits. Third-party cookies are associated with a domain that is different from the domain of the site a user visits. The third-party cookies used by AdSense for advertising purposes may be associated with the doubleclick.net or country-specific Google domains such as google.com. Note that this doesn't change the name or content of the actual cookie. The difference between a third-party cookie and a first-party cookie is only a matter of which domain a browser is pointed toward. The exact same kind of cookie might be sent in either scenario.
Custom Search Ads (including AdSense for Search, AdSense for Shopping, and Programmable Search Engine) also uses a combination of first-party and third-party cookies. First party cookies are relied upon primarily when access to third party cookies is restricted, and are required to continue ad serving.