Wednesday, August 14, 2024

Digest for adsense-api@googlegroups.com - 2 updates in 1 topic

Jason <qq286027564@gmail.com>: Aug 09 03:05AM -0700

Hi Andrew,
when I use $report = $service->accounts_reports->*generate*($account,
$optParams); I can get result correctly. but when I change it to $report =
$service->accounts_reports->*generateCsv*($account, $optParams); and then
$report->getData(), it always show NULL
 
Thank you and Best regards
Jason
 
 
 
 
On Thursday, August 8, 2024 at 5:12:57 PM UTC+8 Ad Sense API wrote:
 
Ad Sense API <adsenseapi@forumsupport.google>: Aug 13 09:38AM

Hi Jason,
 
I've looked into this in more detail, and unfortunately there is an issue with PHP support for the reportCsv method. This is primarily because the CSV report response (by design) is not in JSON format. The regular report method should work fine with the PHP client library however.
 
Regards,
Andrew (AdSense API team)
ref:!00D1U01174p.!5004Q02vEfLJ:ref
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to adsense-api+unsubscribe@googlegroups.com.

Friday, August 9, 2024

Digest for adsense-api@googlegroups.com - 2 updates in 1 topic

Jason <qq286027564@gmail.com>: Aug 07 03:03PM -0700

Hi Andrew,
thank you for the answer.
https://github.com/googleads/googleads-adsense-examples/tree/HEAD/v2/php/examples/GenerateReport.php has
only an example of generate method, but no generateCsv method
I tried $report = $service->accounts_reports->generateCsv($account,
$optParams); its returned value is HttpBody and I have no idea how to get
data from it.
 
 
 
 
On Thursday, August 8, 2024 at 1:42:39 AM UTC+8 Ad Sense API wrote:
 
Ad Sense API <adsenseapi@forumsupport.google>: Aug 08 09:12AM

Hi Jason,
 
It looks like you will be getting back the https://github.com/googleapis/google-api-php-client-services/blob/main/src/Adsense/HttpBody.php type, and calling getData() should get you the contents. Alternatively if you can get the generateCsv output in plain text, the CSV report appears after the http headers, so it should just be a case of ignoring the text until it gets to the line that includes the report column names.
 
I hope that helps.
Regards,
Andrew (AdSense API team)
ref:!00D1U01174p.!5004Q02vEfLJ:ref
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to adsense-api+unsubscribe@googlegroups.com.

Thursday, August 8, 2024

Digest for adsense-api@googlegroups.com - 2 updates in 1 topic

Jason <qq286027564@gmail.com>: Aug 07 02:27AM -0700

is there an example of how to use *generateCsv* method and handle the
returned data in php?
$report = $service->accounts_reports->generate($account, $optParams);
 
thank you very much.
Ad Sense API <adsenseapi@forumsupport.google>: Aug 07 05:42PM

Hi Jason,
 
Thanks for your question. We have some example php code for report generation at https://github.com/googleads/googleads-adsense-examples/tree/HEAD/v2/php/examples/GenerateReport.php (accessed via https://developers.google.com/adsense/management/libraries). Hopefully that is a good starting point for what you are trying to do.
 
Regards,
Andrew (AdSense API team)
ref:!00D1U01174p.!5004Q02vEfLJ:ref
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to adsense-api+unsubscribe@googlegroups.com.

Wednesday, August 7, 2024

Digest for adsense-api@googlegroups.com - 2 updates in 1 topic

Unibots GA <somounibots@gmail.com>: Aug 06 05:39AM -0700

Hi Team,
 
I am using the AdSense Management API to get a list of all the channels,
but I am unable to find any reference to get the list of all the style IDs
and names for the respective account.
 
Thank you,
Bhupender Singh
Ad Sense API <adsenseapi@forumsupport.google>: Aug 06 03:34PM

Hi Bhupender,
 
Thanks for your question. The AdSense Management API doesn't support search styles directly, so you won't be able to get a full list of style IDs and names. They are available as reporting dimensions however (CUSTOM_SEARCH_STYLE_ID and CUSTOM_SEARCH_STYLE_NAME - see https://developers.google.com/adsense/management/reference/rest/v2/Dimension), so if there is data in the reports for the styles, they should be returned that way.
 
Regards,
Andrew (AdSense API team)
ref:!00D1U01174p.!5004Q02vEcat:ref
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to adsense-api+unsubscribe@googlegroups.com.

Saturday, August 3, 2024

Digest for adsense-api@googlegroups.com - 1 update in 1 topic

Jessyca Moraes <jessyca.moraes@alright.com.br>: Aug 02 05:17AM -0700

Hello!
 
Is it possible to get payment information of the account through the
AdSense API? Information such as: Payments account ID, Payments account
nickname, Payments profile ID, Country/Region, Account type, Name, Address,
Phone number, Document language preference.
 
Thanks in advance!
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to adsense-api+unsubscribe@googlegroups.com.

Thursday, August 1, 2024

Digest for adsense-api@googlegroups.com - 1 update in 1 topic

Adrien Hingert <ahingert@gmail.com>: Jul 30 11:05PM -0700

Thank you, Andrew.
I'll keep combing through my code, then.
 
Adrien
 
On Tuesday 30 July 2024 at 16:52:58 UTC+2 Ad Sense API wrote:
 
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to adsense-api+unsubscribe@googlegroups.com.

Wednesday, July 31, 2024

Digest for adsense-api@googlegroups.com - 2 updates in 1 topic

Adrien Hingert <ahingert@gmail.com>: Jul 28 12:01AM -0700

In the last two weeks or so I've noticed that Google is not reporting all
the query parameters in both the API and the reporting in the AdSense
website. I haven't changed any of the code and I've tested that the query
parameters are being used correctly. I know my question is vague, but I'm
unsure how yo ask it better. Has anyone else been experiencing this? Has
there been a change in the way AdSense reports query parameters (I haven't
found anything in the documentation)?
Ad Sense API <adsenseapi@forumsupport.google>: Jul 30 02:52PM

Hi Adrien,
 
Thanks for your question. We aren't aware of any recent changes to AdSense url reporting. It is worth noting that for the page url dimension specifically, the warning in https://support.google.com/adsense/answer/11988478 is relevant. In particular, pages need to receive a minimum number of impressions to be eligible for the page url breakdown. That might explain some of the discrepancies you are seeing.
 
Regards,
Andrew (AdSense API team)
ref:!00D1U01174p.!5004Q02vEKOb:ref
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to adsense-api+unsubscribe@googlegroups.com.

Thursday, June 27, 2024

Digest for adsense-api@googlegroups.com - 2 updates in 1 topic

Unibots GA <somounibots@gmail.com>: Jun 26 04:13AM -0700

Hi Team,
Could you please tell me if there is any total row data limit
per day, and what that value is for Adsense Management API.
Regards.
Bhupender
 
On Thursday 20 June 2024 at 14:36:27 UTC+5:30 Ad Sense API wrote:
 
Ad Sense API <adsenseapi@forumsupport.google>: Jun 27 07:34AM

Hi Bhupender,
 
Thanks for your question. We do have a total row data limit per day, but don't document the exact limit, partly because it can vary from user to user.
 
The AdSense API documentation for limits and quotas has recently been updated at https://developers.google.com/adsense/management/appendix/limits and hopefully gives you a bit more information.
 
Regards,
Andrew (AdSense API team)
ref:!00D1U01174p.!5004Q02tJPOi:ref
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to adsense-api+unsubscribe@googlegroups.com.

Friday, June 21, 2024

Digest for adsense-api@googlegroups.com - 4 updates in 2 topics

Unibots GA <somounibots@gmail.com>: Jun 19 02:33AM -0700

Hi,
 
I am getting an error while generating the access token which states:
 
"Access blocked: authorization error. You can't sign in to this app because
it doesn't comply with Google's OAuth 2.0 policy for keeping apps secure.
Error 400: invalid_request Request details:
redirect_uri=["http://localhost:3000"] flowName=GeneralOAuthFlow".
 
These accounts have all the permissions, but I am still getting the error.
I have attached a screenshot for reference.
 
Please help us resolve this on an urgent basis.
Regards,
Bhupender
Ad Sense API <adsenseapi@forumsupport.google>: Jun 20 09:12AM

Hi - thanks for your question.
 
I believe the problem is that the redirect URI needs to exactly match the location on your site that is capable of processing the authorization. My understanding is that localhost addresses are not considered valid, because of security concerns. I would recommend using an actual web address instead of localhost.
 
I hope this helps.
Regards,
Andrew (AdSense API team)
ref:!00D1U01174p.!5004Q02tJPOe:ref
Unibots GA <somounibots@gmail.com>: Jun 19 02:39AM -0700

Hi
 
I am getting an error while request for the data from ADSENSE MANAGEMENT
API:
 
" status: 429,
statusText: 'Too Many Requests',
request: {
responseURL: 'https://adsense.googleapis.com/v2/accounts/pub-........'
}
},
error: undefined,
status: 429,
code: 429,
errors: [
{
message: 'Report row quota exceeded.',
domain: 'global',
reason: 'rateLimitExceeded'
}
]".
 
I have requested small chunks of data, but I am still getting the same
error. Please help to resolve this on an urgent basis.
Ad Sense API <adsenseapi@forumsupport.google>: Jun 20 09:06AM

Hi - thanks for your message.
 
The errors you are receiving are because your user has exceeded the daily quota of reporting data that is retrievable via the API. There are some details of the limits at https://developers.google.com/adsense/management/appendix/limits#report. It might be that you have already made several large report requests during a 24 hour period, in which case even small requests will be rejected after that, until the quota gets reset at the the end of the 24 hour period.
 
I hope this helps.
Regards,
Andrew (AdSense API team)
ref:!00D1U01174p.!5004Q02tJPOi:ref
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to adsense-api+unsubscribe@googlegroups.com.

Thursday, June 6, 2024

Digest for adsense-api@googlegroups.com - 2 updates in 1 topic

Scott Brown <scott@sidereel.com>: May 31 08:12AM -0700

Hi,
 
I have enabled Adsense Management API.
 
I have an OAuth 2.0 Client ID for Postman (I have a different one for
https://www.googleapis.com/auth/adwords that is working).
 
I can request new OAuth for scope "https://www.googleapis.com/auth/adsense"
and that works.
 
Yet when I try:
 
https://adsense.googleapis.com/v2/accounts/account_id/adclients/pub-#####/adunits
 
Grabbing pub-###### from our Adsense Account info as Publisher ID
 
 
I get
 
{
"error": {
"code": 403,
"message": "The caller does not have permission",
"status": "PERMISSION_DENIED"
}
}
 
Also seeing 100 errors on the API Services page for the Adsense Management
API.
 
Both my Adsense and Google Cloud /API accounts use the same email / login.
 
What do I need to do to enable permissions to use Adsense API?
 
Thanks,
 
Scott
Ad Sense API <adsenseapi@forumsupport.google>: Jun 05 04:40PM

Hi Scott,
 
Thanks for your message. I'd recommend using the API explorer at https://developers.google.com/adsense/management/reference/rest/v2/accounts/list (the "Try this method" box), to check your user has the appropriate access. There is also sample code for accessing the API, including getting the relevant credentials, at https://developers.google.com/adsense/management/libraries.
 
I hope this helps.
Regards,
Andrew (AdSense API team)
ref:!00D1U01174p.!5004Q02tJDw1:ref
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to adsense-api+unsubscribe@googlegroups.com.

Thursday, May 16, 2024

Digest for adsense-api@googlegroups.com - 1 update in 1 topic

Ad Sense API <adsenseapi@forumsupport.google>: May 16 07:45AM

Hi Masood,
 
Thanks for your question. The warning is because the PAGE_URL dimension is only available for AdSense for Content (see https://support.google.com/adsense/answer/11988478). If you include "PRODUCT_CODE==AFC" in the filters for your request, the incompatibility warning should go away.
 
You might still find you get no results however, unless your site has a lot of traffic: the support page linked above states "Pages need to receive a minimum number of impressions to be eligible for this breakdown".
 
I hope this helps,
Andrew (AdSense API team)
ref:!00D1U01174p.!5004Q02tIy27:ref
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to adsense-api+unsubscribe@googlegroups.com.

Wednesday, May 15, 2024

Digest for adsense-api@googlegroups.com - 1 update in 1 topic

Masood Anwer <masoodanwer@gmail.com>: May 10 05:55AM -0700

I would like to create top pages report in apps script but I have found
metrics & dimensions comatibility issue. Please share any suggestions &
solutions. Here is sample API call.
 
const report = AdSense.Accounts.Reports.generate("accounts/XXXX", {
filters: ['DOMAIN_NAME=@' + 'abc.com'],
metrics: ['ESTIMATED_EARNINGS', 'PAGE_VIEWS', 'PAGE_VIEWS_RPM', 'CLICKS'
],
dimensions: ['PAGE_URL'],
orderBy: ['+PAGE_VIEWS']
});
Logger.log("report = " + report);
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to adsense-api+unsubscribe@googlegroups.com.

Saturday, April 20, 2024

Learn more about our updated Terms of Service

jbarkerky@gmail.com

We're updating our Terms of Service on May 22, 2024, so we wanted to let you know ahead of time.

These changes won't affect the way you use our services, but they should help make it easier for you to understand what to expect from Google — and what we expect from you — as you use our services.

You can see the new terms here. We also summarized the changes at the bottom of this email.

What do I need to do?

  • If you're under the age required to manage your own Google Account:
    • We sent this email to your parent or guardian so that they can help you understand our updates better.
    • Please discuss this email with your parent or guardian to decide if you need to do anything different with your account.
  • If you're a parent or guardian, and you allow your child to use the services:
    • Please review the updates to our terms with your child and help them decide whether they need to make any changes to their account.
    • Please remember that these terms apply to you and you're responsible for your child's activity on the services.
  • If you're the administrator of a Google Workspace corporate or educational account and you've enabled your users to access Google Additional Services:
    • Our new Terms of Service won't affect the Google Workspace agreement between Google and your organization. These new terms will only apply to those users to whom you've given access to Google Additional Services. You can always manage whether your users have access to Google Additional Services, and which ones, in your Admin console.
  • If you're a Google Workspace reseller whose customers have enabled their users to access Google Additional Services:
    • Our new Terms of Service won't affect your Google Workspace agreement with your customers. These new terms will only apply to your customers' users who've been given access to Google Additional Services. Your customers can always manage whether their users have access to Google Additional Services, and which ones, in their Admin console.
  • If you're any other user of the services:
    • Please read this email to understand our updated terms and your options for further action.
    • If you agree to the new terms, no further action is needed.

What's changing?

You can review the new Google Terms of Service here. At a glance, here's what this update covers:

  • Generative AI terms. We're moving our existing Generative AI Additional Terms to our main Terms of Service and adding other AI-related clarifications. For example – we won't claim ownership over original content generated by our AI-powered services.
  • More clarity on abusive activity. We're providing more examples and details about abuse and interference with our services that isn't allowed.
  • More details on limitations of liability. For users outside the US, we're adding clarifications to our limitations of liability and indemnity sections to avoid any misunderstandings in light of local laws or customs.
  • More clarity on disputes. We're clarifying that if you violate our terms, our remedies aren't limited to suspension or termination of your access to the services, but may include other remedies under applicable law. If problems or disputes arise between us about these terms, you'll have the opportunity to describe the issues and address them.
  • Updates to reflect how our services work. We're adding language about how our services work, and updating certain Google service brand names that have changed over time.
  • For users based in the European Economic Area (EEA) only:

If you don't agree to the new terms, you should remove your content and stop using the services. You can also end your relationship with us at any time, without penalty, by closing your Google Account.

Thank you for using Google services!

© 2024 Google LLC 1600 Amphitheatre Parkway, Mountain View, CA 94043

You have received this email to update you about important changes to Google's Terms of Service.