AdSense Management API and AdSense Host API related questions.
Questions tagged [adsense-api]
136 questions
1
vote
1 answer
How to integrate google AdSense in NextJS project?
Integrate google AdSense in NextJS project?
I tried several way which gives on internet blog but I was stuck each method. and I tried AdSense at dummy site but It couldn't work in my case
Here I have several Question regarding Google AdSense:
Is…

Anjan Diyora
- 13
- 5
1
vote
1 answer
How to programmatically know if an Google AdSense ad is successfully displayed or if any error occured in my react/next.js website?
Our site let's user post content and we display ads on them and share some part of ad revenue with user just like YouTube. Now the issue is how to programmatically know if an ad was successfully displayed on user's post? We want to count the number…

Captain_Satya
- 61
- 6
1
vote
1 answer
Exception in queued GPT command TypeError: Cannot read property 'addService' of null
I am using adsesne code in my angularjs application. On the first load of application ads are working fine when I switch content dynamically I get this error.
Exception in queued GPT command TypeError: Cannot read property 'addService' of null…

Ali Wahab
- 482
- 6
- 13
1
vote
0 answers
Prevent Adsense "No Content" tag on PHP page with AJAX request content
I'm trying to use Adsense on my PHP website's main page. The content of the page (video players) is inserted from an AJAX request after the index.php has been loaded. The main page sends an Ajax request to a PHP file which query selects rows from…

aman
- 307
- 21
- 48
1
vote
1 answer
Why AdSense web interface and API are reporting different numbers?
I've managed to get API working but it is reporting numbers which are always a bit lower than the ones reported by AdSense web (or mobile app) interface.
This is the response from API explorer:
"kind": "adsense#report",
"totalMatchedRows": "1",
…

Dejan
- 21
- 2
1
vote
0 answers
Adsense - We found that your site is down or unavailable
It's my first time to try adsense in a site I made from scratch
I tried to add adsense to my website over 10 times and everytime it says:
We found that your site is down or unavailable:
And the code provided is already in the section…

xTrimy
- 804
- 9
- 23
1
vote
1 answer
How to get the Mediation report from AdmobMediation using PHP SDK
I'm using google-api-php-client to get the AdmobMediation report remotely from our servers
Every thing works fine, except that the response report is only related to the "Admob Network", not the "Mediation report"
so as a result, the metrics are…

Karam Bowidany
- 11
- 1
1
vote
0 answers
Using Google Adsense Management Api in Spring Boot Secured Web Application (Https)
I have used Google Adsense management API Java client library in my web application (built using Spring Boot) in order to use Adsense report in admin dashboard. I have used following code to establish credential.
GoogleAuthorizationCodeFlow flow =…

Alina
- 56
- 6
1
vote
0 answers
How to use AdSense API to show saved raports to website users?
It's been a long journey.
I've researched all over the place. And it has been painful to find a solution.
I intend to do something, supposedly, simple.
I need to show reports saved in AdSense and the user could search the results based on the time…

Peter Pan
- 55
- 8
1
vote
1 answer
Can not access the Adsense Management API
Can not access the AdSense API no matter what I try. I have tried both service account and OAuth authentications.
What I am trying to accomplish:
Creating a bot that will grab the Adsense revenue earned and store it in an in-house database for…

tmarois
- 2,424
- 2
- 31
- 43
1
vote
0 answers
How can one access the "Active View Viewable" metric via the AdSense API
While the "Active View Viewable" metric is available in the AdSense UI, it appears that it has never been exposed to the AdSense Management API. Is it indeed possible to access this metric (perhaps requiring intervention from the Google AdSense…

Michael Manoochehri
- 7,931
- 6
- 33
- 47
1
vote
2 answers
I want to print admob report in my application
I have admob account and ad units are successfully placed in my application.
now i want to print admob report in my application like User ABC has clicked '_' times in this application earning and RPM of application
how can i do that can anyone…

user3118448
- 41
- 1
- 8
1
vote
0 answers
Google AdSense API explorer return all rows even when a maxResult as well
Have anyone else had a problem with Google AdSense API explorer returning all rows for a report even when MaxResult is set? It works for all other requests but not Accounts.reports.saved:…

Julia
- 31
- 3
1
vote
0 answers
Google AdSense API not showing anything
I'm developing Google AdSense Management API in php, I'm new for it.
I'm getting nothing after login,
I'm trying to run Example sample code.
but I'm getting this screen after login to my account!
My adsense-sample.php code is:

Jay Patel
- 2,341
- 2
- 22
- 43
1
vote
0 answers
Google Adsense Pub-Id Placement to prevent trackers
My adsense account provided me with this piece of code: