{"_id":"@brands-shared-library/gpt-manager","name":"@brands-shared-library/gpt-manager","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@brands-shared-library/gpt-manager","version":"1.0.0","description":"A JS SDK of the Google DFP/GPT api","main":"index.js","type":"module","scripts":{"test":"NODE_OPTIONS='--experimental-vm-modules' jest"},"author":{"name":"BBC Studios"},"license":"ISC","devDependencies":{"jest-environment-jsdom":"^29.7.0"},"jest":{"testEnvironment":"jest-environment-jsdom","transform":{}},"gitHead":"086d9dd40809bc159d856754efe8cbd45355ac74","_id":"@brands-shared-library/gpt-manager@1.0.0","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-iJk1x6bWbLUPNVz/1b+LuyidGD/KrDmhSfjw+gwtfwE/gwfMHg7LJx7K1WktGLhhbba148c3bkwjvk5xk1Y0KQ==","shasum":"bae6309511afc6568508255067ee396c9dbefb01","tarball":"https://registry.npmjs.org/@brands-shared-library/gpt-manager/-/gpt-manager-1.0.0.tgz","fileCount":5,"unpackedSize":22403,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICiIPgdqUuomVNWlbWYXIU+pQmhBt4zPBSdSE/aIQ4u9AiAt1lEr4f38h68LeMPD9j/tr+xU2W/vDp1/rZzf6BpAVg=="}]},"_npmUser":{"name":"ywchuang_bbc","email":"yu-wei.chuang@bbc.com"},"directories":{},"maintainers":[{"name":"ywchuang_bbc","email":"yu-wei.chuang@bbc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gpt-manager_1.0.0_1725456799190_0.025810109770568967"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-04T13:33:19.072Z","1.0.0":"2024-09-04T13:33:19.361Z","modified":"2024-09-04T13:33:19.666Z"},"maintainers":[{"name":"ywchuang_bbc","email":"yu-wei.chuang@bbc.com"}],"description":"A JS SDK of the Google DFP/GPT api","author":{"name":"BBC Studios"},"license":"ISC","readme":"# Google publish tag manager\n\nA Js implementation of the google [DFP](https://developers.google.com/doubleclick-gpt/reference \"GPT Reference\") API. This package is forked from https://github.com/jaanauati/react-dfp\n\n## Usage\n\nRegister Slot:\n\n```javascript\ngptManager.registerSlot({\n  networkId: \"1000\",\n  adUnit: \"foo/bar/baz\",\n  sizes: [[728, 90]],\n  slotShouldRefresh: () => true,\n  slotId: \"testElement1\",\n});\n\ngptManager.load();\n```\n\nSet targeting\n\n```javascript\ngptManager.setTargetingArguments({\n  title: \"example title\",\n  page_type: \"test\",\n  site: \"BBC Earth\",\n  environment: \"developement\",\n});\n```\n\nMore usage can be found in `gptManager.test.js`\n","readmeFilename":"README.md"}