You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-6
Original file line number
Diff line number
Diff line change
@@ -434,21 +434,23 @@ NOTE: Prebid is supported for SRA. Amazon A9/TAM is not supported for SRA and w
434
434
NOTE: ArcAds SRA implementation calls enableSingleRequest() which means that when using pubads lazyLoad functions together with SRA, when the first ad slot comes within the viewport specified by the fetchMarginPercent parameter, the call for that ad and all other ad slots is made. If different behavior is desired after the initial SRA call is made, an outside lazy loading library may be used to manage the calls for regsterAd, reserveAd and other calls.
435
435
436
436
## Developer Tools
437
-
There's a series developer tools available, to get started run `yarn install`.
437
+
There's a series developer tools available, to get started run `npm install`.
438
438
439
439
| Command | Description |
440
440
| ------------- | ------------- |
441
-
| `yarn dev` | Runs the development command, watches for changes and compiles the changes down to the `dist` directory. |
442
-
| `yarn build` | Builds the project into the `dist` directory with minification. |
443
-
| `yarn docs` | Generates ESDoc documentation in the `docs` directory on-demand. |
444
-
| `yarn test` | Runs a series of unit tests with Jest. Tests are automatically validated during a pull request. |
445
-
| `yarn debug` | Starts a local http server so you can link directly to the script during development. For example `<script src="http://localhost:9000/dist/arcads.js"></script>|
441
+
| `npm run dev` | Runs the development command, watches for changes and compiles the changes down to the `dist` directory. |
442
+
| `npm run build` | Builds the project into the `dist` directory with minification. |
443
+
| `npm run docs` | Generates ESDoc documentation in the `docs` directory on-demand. |
444
+
| `npm run test` | Runs a series of unit tests with Jest. Tests are automatically validated during a pull request. |
445
+
| `npm run debug` | Starts a local http server so you can link directly to the script during development. For example `<script src="http://localhost:9000/dist/arcads.js"></script>|
446
446
447
447
### Slot Override
448
448
You can override the slot name of every advertisement on the page by appending `?adslot=` to the URL. This will override whatever is placed inside of the `slotName` field when invoking the `registerAd`method. For example, if you hit the URL`arcpublishing.com/?adslot=homepage/myad`, the full ad slot path will end up being your DFP id followed by the value:`123/homepage/myad`.
449
449
450
450
You can also debug slot names and GPTin general by typing `window.googletag.openConsole()` into the browsers developer console.
451
451
452
+
### Logging
453
+
To inspect the funtion calls taking place within the ArcAds library, you can include the `debug=true` query parameter on your page.
452
454
453
455
## Contributing
454
456
If you'd like to contribute to ArcAds please read our [contributing guide](https://github.com/washingtonpost/ArcAds/blob/master/CONTRIBUTING.md).
0 commit comments