Skip to content

Commit abffc63

Browse files
authored
Merge pull request #14117 from bbc/update-ad-docs
Refer BBC Engineers to ask for guidance on ad rendering
2 parents e6fa8bc + acae9a9 commit abffc63

1 file changed

Lines changed: 3 additions & 27 deletions

File tree

docs/Rendering-Ads.mdx

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Meta } from '@storybook/addon-docs/blocks';
44

55
# Rendering Ad
66

7-
We are currently rendering two types of Ads on our front pages.
7+
We render Ads throughout our site including these on home pages:
88

99
Leaderboard Ad
1010
![Leaderboard Ad
@@ -17,33 +17,9 @@ MPU Ad
1717

1818
Afrique, Arabic, Azeri, Bengali, Gahuza, Hausa, Hindi, Indonesia, Japanese, Kyrgyz, Mundo, Nepali, Pashto, Persian, Portuguese, Sinhala, Somali, Swahili, Tamil, Turkce, Ukchina, Urdu, Uzbek, Vietnamese, Zhongwen
1919

20-
## Rendering Ads on local environment
20+
## Rendering Ads on local + test
2121

22-
Given you are using Chrome browser.
23-
24-
1. Download [ModHeader Chrome extension](https://www.google.com/search?q=modheader+chrome+pass+boolean&rlz=1C5CHFA_enGB762GB762&oq=modheader&aqs=chrome.0.69i59l2j69i57j69i60j69i61j69i60j69i65l2.1039j0j7&sourceid=chrome&ie=UTF-8)
25-
26-
2. With the ModHeader extension, add a header of `BBC-Adverts` with the value `true`.
27-
28-
e.g. ![image](https://user-images.githubusercontent.com/30599794/90151074-40bd7f80-dd7e-11ea-985d-902ed04641ac.png)
29-
30-
3. Download the [CORS Unblock Chrome extension](https://chrome.google.com/webstore/detail/cors-unblock/lfhmikememgdcahcdlaciloancbhjino?hl=en) to prevent any CORS errors related to https://www.test.bbc.com/userinfo which would prevent the ads to display correctly.
31-
32-
4. Run local environment: `yarn dev`. If you would like to run with Simorgh's CSP Headers, run the following command: `yarn build && yarn start`
33-
34-
5. Visit the home page of one of the services with Ads enabled and append this query string to the url: `?site=test&ads-debug=true`
35-
36-
e.g. http://localhost:7080/mundo?site=test\&ads-debug=true
37-
38-
## Rendering Ads on test environment
39-
40-
Given you do not have any ad blocking extensions in your browser.
41-
42-
1. Use a proxy to set your location outside the UK. Visiting https://www.test.bbc.com/userinfo should show `"X-Ip_is_advertise_combined": "yes"`. And when you visit https://www.test.bbc.com/mundo you should be able to see an advert.
43-
44-
2. If you would like to see the ads with the debugger tool you can append this query string to the url: `?ads-debug=true`
45-
46-
e.g. https://www.test.bbc.com/mundo?ads-debug=true
22+
BBC Engineers, please see internal guidance on how to do this, message in our Slack channels for guidance.
4723

4824
## Rendering Ads on an a11y device
4925

0 commit comments

Comments
 (0)