Repository google-adsense-module

standfv

standfv posted a new question

google-adsense-module • a month ago

how to add crossorigin: 'anonymous' in script?

how to add crossorigin: 'anonymous' in script?

standfv

standfv posted a new question

google-adsense-module • a month ago

how to add crossorigin='anonymous' in <script>of adsense???

how to add crossorigin='anonymous' in <script>of adsense???

standfv

standfv posted a new question

google-adsense-module • a month ago

Failed to load resource: the server responded with a status of 403 () ads

Failed to load resource: the server responded with a status of 403 () ads

kruny1001

kruny1001 posted a new question

google-adsense-module • 6 months ago

nuxt generate

It seems spa version doesn't work.
adsbygoogle.push() error: Only one 'enablepagelevel_ads' allowed per page.

AlexLomm

AlexLomm posted a new question

google-adsense-module • 7 months ago

[Vue warn]: You are using the runtime-only build...

I'm getting the following error when trying to use this package (with nuxt):

screen shot 2018-01-23 at 10 16 44 pm

The issue is arised because templates should be precompiled before releasing dist, as is explained in the following issue: https://github.com/nuxt/nuxt.js/issues/1142#issuecomment-317273189

AlexLomm

AlexLomm posted a new question

google-adsense-module • 7 months ago

Cannot read property 'length' of undefined

Node: v8.9.4
npm: v5.6.0
google-adsense: v1.1.3

I'm getting the following error when running npm run dev against my nuxt project:

screen shot 2018-01-23 at 1 10 49 pm

rlam3

rlam3 posted a new question

google-adsense-module • 7 months ago

Would love a working example.

Would love a working example as reference.

Been trying to get mine code working but it doesn't seem to work show anything in page.
It shows up the tag of

tag of <adsbygoogle/>

Console error:

[Vue warn]: Unknown custom element: <adsbygoogle> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

but nothing to show for it.

Thanks!

lunafi-evan

lunafi-evan posted a new question

google-adsense-module • 9 months ago

not detected by Google Adsense application

I've enabled this module in a production website that's hosted using a static nuxt deployment. I tried applying to Google Adsense twice and both times the application failed because they were unable to detect the code on the website. I can look at the sources and see the code in an included <script> tag, but Google doesn't detect it.

lunafi-evan

lunafi-evan posted a new question

google-adsense-module • 10 months ago

Error: Cannot find module './package.json'

To recreate this I did:

  • vue init nuxt-community/starter-template vue-adsense-test
  • cd vue-adsense-test
  • npm i
  • npm i -S @nuxtjs/google-adsense

* added adsense module to nuxt.config.js

After installing 1.0.1 and adding this to my nuxt.config.js

    ['@nuxtjs/google-adsense', { id: '<my id>' }],    

This is logged to the terminal while nuxt is starting up

> [email protected]1.0.0 dev /home/evan/devel/temp/vue-adsense-test
> nuxt

{ Error: Cannot find module './package.json'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/evan/devel/temp/vue-adsense-test/node_modules/@nuxtjs/google-adsense/lib/module.js:61:23)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at ModuleContainer._callee2$ (/home/evan/devel/temp/vue-adsense-test/node_modules/nuxt/lib/core/module.js:108:16)
    at tryCatch (/home/evan/devel/temp/vue-adsense-test/node_modules/nuxt/node_modules/regenerator-runtime/runtime.js:65:40)
    at Generator.invoke [as _invoke] (/home/evan/devel/temp/vue-adsense-test/node_modules/nuxt/node_modules/regenerator-runtime/runtime.js:299:22)
    at Generator.prototype.(anonymous function) [as next] (/home/evan/devel/temp/vue-adsense-test/node_modules/nuxt/node_modules/regenerator-runtime/runtime.js:117:21) code: 'MODULE_NOT_FOUND' }
  nuxt:build App root: /home/evan/devel/temp/vue-adsense-test +0ms

I get this in the browser: Cannot GET / and this in the browser console (Chrome):

Failed to load resource: the server responded with a status of 404 (Not Found)
ruslankonev

ruslankonev posted a new question

google-adsense-module • 10 months ago

Not available on npm?
yarn add v1.1.0
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/@nuxtjs%2fgoogle-adsense: Not found".

update: installing from repo will fail on tests:

$ npm run test

> @nuxtjs/[email protected] test /home/ruslan/.cache/yarn/v1/.tmp/118ad1d31a382ae1c601f8ebcf76842f.72b11f28812644a1e9f0792a090e91d5cbd72188.prepare
> npm run lint && jest


> @nuxtjs/[email protected] lint /home/ruslan/.cache/yarn/v1/.tmp/118ad1d31a382ae1c601f8ebcf76842f.72b11f28812644a1e9f0792a090e91d5cbd72188.prepare
> eslint lib src test


/home/ruslan/.cache/yarn/v1/.tmp/118ad1d31a382ae1c601f8ebcf76842f.72b11f28812644a1e9f0792a090e91d5cbd72188.prepare/lib/index.js
  31:5  error  Unexpected console statement  no-console1 problem (1 error, 0 warnings)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nuxtjs/[email protected]0.0.0 lint: `eslint lib src test`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @nuxtjs/[email protected]0.0.0 lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ruslan/.npm/_logs/2017-10-11T22_21_33_765Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nuxtjs/[email protected]0.0.0 test: `npm run lint && jest`
npm ERR! Exit status 1
greenkeeper[bot]

greenkeeper[bot] posted a new question

google-adsense-module • 10 months ago

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper integration’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.