138 questions
0
votes
0
answers
70
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
0
answers
93
views
Retrieving earnings from Google Adsense v2 API?
How do you retrieve a report of total earnings for every month with the Google Adsense v2 report generation API?
I'm calling it like:
from googleapiclient.discovery import build
from datetime import ...
1
vote
0
answers
62
views
App Script error when using Google Adsense API
I wrote an Apps Script (Google Sheets) to retrieve information from Google Adsense using its service. It's enabled from the Cloud console and authorized through OAuth2
Code is:
var accountId = '...
0
votes
1
answer
46
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
0
answers
102
views
Creating a Google Adsense AdUnit with the Python API?
How do you use the Python Adsense Management API to create adunits?
Based on documentation and some examples I've found, it should be something like:
#!/usr/bin/env python
"""
pip ...
0
votes
1
answer
358
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
107
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
231
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
168
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
192
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
563
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
285
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
376
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
128
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
183
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 ...