136 questions
0
votes
0
answers
31
views
GA4 not showing revenue from AdSense for Search (only AdSense for Content) [closed]
I’m trying to link my AdSense for Search (AFS) account with Google Analytics 4 (GA4), so I can fetch UTM, URL and more granular data using GA API and dump to our database for analysis, but currently I'...
-1
votes
1
answer
226
views
Why does Adsense Management API always return a 403 error
I am trying to get some data using the Adsense Management API. I have created a project, enabled the API and then created a service account and generated keys for it.
I generate a token with the ...
0
votes
1
answer
79
views
Adsense: keeping webpage URL private, changing referrer
If I show an Adsense ad unit on a webpage, does the page URL get passed to the advertiser and/or Google? Are they told every page that shows their ad or that someone clicks from? Is there a way to ...
0
votes
1
answer
462
views
How do I find my Google Adsense API "parent" account?
I am trying to set up the Google Adsense API for a project I am working on and have started playing around with the Google OAuth 2.0 playground. Some of the commands in the list they provide reference ...
0
votes
0
answers
117
views
Google App Script: modify array before setting values in Google Sheet
I'm using Google's App Script to import AdSense data into a Google Sheet (I'm using this script and it's working fine).
Here is sample data I receive (usually the rows number in the hundreds) which is ...
-1
votes
1
answer
278
views
Import AdSense in Google Sheets
I'm using the generateReport function from Google's AdSense Service to import AdSense data into Google Spreadsheets. How do I edit the code to import data only from a specific domain (AdSense ads are ...
1
vote
0
answers
194
views
How can I get the complete list of sites with the Adsense Management API v2?
I have been using the adsense management api v2 and I now notice that the sites listed aren't complete. The report on the adsense dasboard shows all the domain names/sites but I cannot figure out why ...
0
votes
1
answer
210
views
Error 403 when trying to generate adsense earnings report using API in Node
I want to generate a report from a firebase cloud function (in Node), I am using the Adsense API v2 like this:
const { google } = require("googleapis");
const adsense = google....
0
votes
1
answer
654
views
Adsense API returning Error 403 - "The caller does not have permission"
Hi I'm trying to fetch the ad unit details of an Adsense Account using the Adsense Management API. I created the application on google cloud console and got the client_id and client_secret which I ...
0
votes
1
answer
327
views
How can i filter data from google adsense api using page url?
i need to send custom filter to google adsense api v2
something like this
$optParams = array(
'filters' => array(
"URL_CHANNEL_NAME=@https://example.com/test/*"
//or "...
0
votes
1
answer
415
views
remove adsense ads on subscription in website
i want to know can i show ads for free users and remove ads if they purchase subscription in my website. (i have website).
and i want to done this in php if conditions like
if(subscription==true){
...
-1
votes
1
answer
146
views
Customize Google AdSense Embedded Connect widget in ReactJs
Is there any documentation or anywhere that notes how to customize the
AdSense for Platforms Embedded Connect Widget?
Or have any docs to adsenseEmbeddedConnect.init() function?
If i want to get just ...
0
votes
0
answers
190
views
Swift, couldn't get earning details from AdMob and AdSense
I'm working on my app (iOS) to get AdMob and AdSense earnings information. But I've been having trouble getting specifics from them. I've already created the credentials and client ID from my Google ...
0
votes
1
answer
435
views
How to Enable Google Adsense Host API for Testing
I'm doing research regarding Google Adsense Host API on how to split the revenue of ads between the content creators and website's owner. I've been following the instruction at https://developers....
1
vote
1
answer
1k
views
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 ...
0
votes
1
answer
98
views
How to define accountName The resource name of the account that owns the collection of ad clients
I'm trying to use Adsense management API in Google Sheets using apps script which runs with javascript.
I'm unable to define "accountName " even knowing
"This sample lists all of the ad ...
7
votes
1
answer
972
views
What exactly does the automaticDataCollectionEnabled flag do in Firebase web?
Currently working on a CMF for a web platform that uses firebase, Firebase Analytics and AdSense. However firebase's docs on consent and user privacy for the web are either missing a lot of stuff or ...
8
votes
2
answers
4k
views
How to configure firebase for consent and data compliance on web?
I'm currently working on a consent management system for my platform where we use firebase for analytics and AdSense for Ads. However the api is badly documented on this subject and there doesn't seem ...
0
votes
1
answer
237
views
Why am I getting a 500 error from api and api explorer
I am trying to call listAccountSites in php via the Adsense Management API and I am continually getting a 500 error. I have tried setting the pageSize to different values and still get the error:
{ &...
1
vote
0
answers
307
views
After update AdSense API version 2, no data from reports
I tried like below
https://adsense.googleapis.com/v2/accounts/pub-xxxxxxxxxxxxxxx/reports:generate?dateRange=CUSTOM&startDate.year=2021&startDate.month=10&startDate.day=12&endDate.year=...
0
votes
1
answer
212
views
switch to the AdSense API version 2
After October 12, the existing AdSense API version 1.4 is not supported, and I tried to switch to the AdSense API version 2, so it is difficult. We would appreciate it if you could provide more ...
1
vote
1
answer
2k
views
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 ...
0
votes
0
answers
230
views
Google adsense API - Get all alerts
So I'm trying to make a NodeJs app, that checks regularly for any new Google Adsense alerts, The issue is that until now, It only shows one Alert, while there is more than 80 showing on my Adsense ...
0
votes
1
answer
579
views
Use Adsense Management V2 API with Google API JavaScript client Wa`parent Error
I'm trying to use the google-api-javascript-client with the Adsense Management API to get reports of an authorized account. The login process with OAuth2 is working fine and I can fetch the Adsense ...
0
votes
1
answer
846
views
Receiving reports data in AdSense v2
While migrating from an older version, I ran into a problem with the reports pulling.
The same report from v1.4 isn't return any data in v2:
v1.4 report scrape:
self.service.accounts().reports()....
1
vote
1
answer
754
views
Accessing Google Adsense API from a server with Python?
Is there any way to use Python to access the Google Adsense API from a server without any user interaction?
This is typically done by setting up a "service account", but Google's docs say ...
0
votes
0
answers
255
views
Adsense redirecting to the ad iframe url in safari
This issue with Adsense happens on safari browsers only
During page load the website will be redirected to the ad url (the src value in the iframe that was provided by adsense i.e https://googleads.g....
0
votes
1
answer
125
views
No values return for Channel metrics
AdSense community!
We integrate with Google AdSense and we came across one issue, where we don't receive any values for Channel (custom_channel_name) metrics from API.
Request:
GET /adsense/v1.4/...
0
votes
1
answer
221
views
I wanted to fetch "Custom Search Style" dimension from Google Adsense
In the dimension and metrics link:
https://developers.google.com/adsense/management/metrics-dimensions
I couldn't.find anything related to Style ID or Style name.
Can someone help?
0
votes
1
answer
272
views
Get bank account information via Adsense API
Is it possible to get payout bank account information via Adsense API? I was not able to find that info in API documentation.
0
votes
1
answer
313
views
AdMob mediationReport.generate return type
I am in between migration from AdSense API the AdMob API (mediationReport.generate method) to generate a report.
I am using python Client API
following below doc
https://developers.google.com/admob/...
0
votes
2
answers
572
views
AdMob EARNINGS (USD) value is not the real value
We use the following AdSense Management API to get AdMob revenue, but the revenue we get from is 1/100 smaller than the actual value on AdMob dashboard.
This makes me think that there is some setting ...
2
votes
1
answer
1k
views
Get the total earnings from a specific URL using the Adsense Management API
Is it possible to get the total all-time earnings of a specific URL (say, https://example.com/page/xyz) using the AdSense Management API? (preferably the PHP library).
If so, please post a code answer ...
1
vote
1
answer
9k
views
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 ...
2
votes
1
answer
701
views
Query Google Adsense data by URL?
Is there any way to query data in the Google Adsense Python API by URL? For example, find the number of ad clicks on a specific page?
I can find no direct method listed in the documentation. The only ...
1
vote
0
answers
163
views
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 ...
0
votes
1
answer
168
views
Is it possible to add/remove Sites from AdSense via the API?
Is it possible to add/remove Sites from AdSense via the API? We run a CMS that includes lots of domains that point to our servers. Sites seem to get automatically added to AdSense after they get ...
1
vote
1
answer
184
views
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:
"...
0
votes
1
answer
1k
views
Some of Users of an Android App cannot Load AdMob ADs
I am asking for a best practice or implementation.
My app's core function providing service for a long time (2 to 4 hours). The users have some active time and when they use the service, the active ...
0
votes
0
answers
336
views
What are Google AdSense Products Names?
I'm using the Google AdSense API. "https://developers.google.com/adsense/management/v1.4/reference/adclients" When I run these codes, a list of products for my AdSense account appears. But I want to ...
2
votes
0
answers
145
views
get account sub-account tree empty
I want to get the sub-account tree under my current account by account id, get it according to the examples method, and respond to an empty object. In fact, the account has been bound to 7 sub ...
0
votes
2
answers
3k
views
Admob Rewarded Ad showing with test ad id, but not showing with my real ad id
I have Created Admob video rewarded ad. My admob Account is old and I have shown successfully an interstial ad in my another app. But, I have added a new app in admob just and created a admob video. ...
2
votes
0
answers
435
views
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 ...
0
votes
1
answer
251
views
how can I take the profit of the individual pages with google adsense or analytics api?
I would like to get the revenue from the google bees for every single item on my website to create a control panel on my website where I can see how much each item makes
0
votes
1
answer
3k
views
How to show google ads on click on button click in our site?
Can anyone help me to show ads on click on button. I want to load the video ads on click on button from html button like showing on youtube.
0
votes
1
answer
783
views
Node.js cannot access Google AdSense Management API. 'user does not have adsense account'
I'm trying to generate AdSense reports on web app hosted on node.js.
Since it's a server-to-server communication i need to use service account.
I followed this guide, but i always getting error:
{
...
1
vote
1
answer
499
views
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 "...
1
vote
0
answers
783
views
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 ...
3
votes
2
answers
2k
views
Hide Google Adsense banner when there's no advertisments on Website
I have some problems when trying to integrate Google Adsense to my Weather Website.
The google banner is running but not well. Sometimes, it doesn't show anything except for a blank banner. Like in ...
0
votes
0
answers
126
views
How to add feed ads in WooCommerce
I try to add feed ads in product thumbnails of my website
There is no error and website is running fine. But No ads has been comeup in my website. How to achieve this in feed ads in WooCommerce ...