AdSense Management API and AdSense Host API related questions.
Questions tagged [adsense-api]
136 questions
3
votes
0 answers
Creating AdUnits in a publisher AdMob account using an API, just as Appodeal does
I've been looking at AdSense Host API, that lets you create ad units for a publisher's AdSense account. I want to be able to do this for the same publisher's AdMob account!
The problem statement here is that I need to create a 'Mobile Ad Mediation…

Arjun Issar
- 672
- 4
- 13
- 32
2
votes
1 answer
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 or atleast a concept of how it could be…

Sayan J. Das
- 852
- 10
- 19
2
votes
1 answer
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 possible workaround I see is to manually create…

Cerin
- 60,957
- 96
- 316
- 522
2
votes
0 answers
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…

Mr.White
- 21
- 2
2
votes
1 answer
Accessing Campaigns report in AdMob using Adsense API
I use Adsense API to access my AdMob account and generate reports. This is the main API request that I use:
https://www.googleapis.com/adsense/v1.4/accounts/accountId/reports
Documentation
The API offer many options for reporting, but what I need…

Ibrahim
- 6,006
- 3
- 39
- 50
2
votes
1 answer
User rate limit (403 error) with Google AdSense API
When making requests to the Google AdSense API I reach the user rate limit. It occurs when three users (different gmail accounts) with access to the same AdSense account are making requests at the same time. I have made sure that one user is only…

Julia
- 31
- 3
2
votes
2 answers
Import from github to android studio
Hey I am trying to build an android application regarding google adsense.
I want to import the android sample.
https://github.com/Ishaan-Kumar/googleads-adsense-examples
Since I am only interested in android I want to import only…

Ishaan Kumar
- 968
- 1
- 11
- 24
2
votes
1 answer
Is there a way to track ads served from within API?
I have set up my Admob to serve ads to specific every 30 seconds within my cordova/ionic based App. Is there a way to capture when a new ad is sent or when an add rotates from the API? Or even a way to capture when a user clicks on an ad?
I know…

rolinger
- 2,787
- 1
- 31
- 53
2
votes
1 answer
'Google AdSense API' PHP sample code is not working
Please, Help me....
I would like to use the Google AdSense API to get my Earnings through PHP.
But sample code is not working.
PUTTY - SSH connect
Install 'Composer'
php -r "if (hash_file('SHA384', 'composer-setup.php') ===…

Heeman Seo
- 21
- 2
2
votes
1 answer
"User does not have an AdSense account" message when using a service account to access the AdSense Management API
I really looked it up and found no suitable answer.
I have both an AdSense and AdMob accounts sharing the same publisher ID. They're active and when I try the API in https://developers.google.com/adsense/management/v1.4/reference/accounts/list it…

Fernando Raposo
- 409
- 4
- 8
2
votes
2 answers
Connect to Google AdSense API via PHP
I'm trying to connect to AdSense API using a PHP script.
I started using this tutorial by google: https://developers.google.com/api-client-library/php/start/get_started#build-the-client-object
However, I didn't manage to connect. This is what I've…

Bramat
- 979
- 4
- 24
- 40
2
votes
0 answers
Google Sign In and Google API Client Authorisation iOS Issue (401)
I am trying to use the Objective-C Google API Client with the Google Sign In service so that I can authorise my requests.
I've setup my Google Sign In login view controller so that a user can login and accept the request permissions (scopes)…

Josh
- 254
- 3
- 19
2
votes
2 answers
Developing with Google Adsense/DFP
I'm developing a web app that will use Google Adsense or DFP as a method of monetisation. I've tried searching for some reliable info but I can't find any.
How do I run a development environment with Adsense/DFP so that ads will show, but not create…

Michael Bates
- 1,884
- 2
- 29
- 40
2
votes
4 answers
using Adsense API, How can I find which application an admob ad unit id belongs to?
Adsense api returns ad unit names associated with the ad unit id. But the names aren't unique like "on main page". These adunits are part of an application created using admob. Some applications have more than 1 ad unit. I can't seem to find an api…

over_optimistic
- 1,399
- 2
- 18
- 27
2
votes
1 answer
Channel-wise Google adsense information
I am using adsense Management API and followed everything there to generate a demo report as it is described in the example on their site.
The information I am currently fetching uses this information :
$startDate = '2012-03-01';
$endDate…

ShayanK
- 1,243
- 2
- 13
- 27