|
Tuesday, December 7, 2021
Learn more about our updated Terms of Service
Friday, November 19, 2021
Digest for adsense-api@googlegroups.com - 2 updates in 1 topic
- How to use ESTIMATED_EARNINGS with Python. - 2 Updates
| Mustafa Demir <demirp55@gmail.com>: Nov 17 07:06PM -0800 I'm very new to this stuff and my coding knowledge is pretty weak. I want to show my daily estimated earnings on the Raspberry Pi screen. Just like the youtube stats show in this video. https://www.youtube.com/watch?v=09OjXKzsNvY But I couldn't find how to write the code. How can I use these metrics with python? Is there a detailed guide? As I said, my coding knowledge is very poor, I really need a guide. |
| Ad Sense API <adsenseapi@forumsupport.google>: Nov 18 03:46PM Hi, Mustafa. That sounds like an awesome project! We have a Python client library that can be used to call the AdSense Management API. The best place to start is our Python examples folder. You can follow the steps in the README to set up the Python client library, and then you can use the generate_report.py example for your use case (it already has ESTIMATED_EARNINGS as one of the metrics that is fetched). If you run into any issues, let me know, and I can help you get unstuck. Donovan McMurray AdSense API Team ref:_00D1U1174p._5004Q2RABe1: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. |
Tuesday, October 26, 2021
Digest for adsense-api@googlegroups.com - 1 update in 1 topic
| Donovan McMurray <donovanfm@google.com>: Oct 25 05:37AM -0700 Attention: We are no longer accepting extension requests, since any new requests would not take effect before all extensions expire on October 26, 2021. On Monday, October 11, 2021 at 5:27:43 PM UTC-4 Donovan McMurray 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. |
Tuesday, October 19, 2021
Digest for adsense-api@googlegroups.com - 2 updates in 1 topic
| Kai Wang <kwang9@eclassifiedsgroup.com>: Oct 17 09:00PM -0700 Hi, Aadsense team.I used the reference code(https://github.com/googleads/googleads-adsense-examples/blob/master/v2/python/generate_report.py) from the official website to get adSense data.After authorized login, the API returns empty results. Here is the code I used: result = service.accounts().reports().generate( account=account_id, dateRange='CUSTOM', startDate_year=2021, startDate_month=9, startDate_day=1, endDate_year=2021, endDate_month=9, endDate_day=15, metrics=['PAGE_VIEWS', 'AD_REQUESTS', 'AD_REQUESTS_COVERAGE', 'CLICKS', 'AD_REQUESTS_CTR', 'COST_PER_CLICK', 'AD_REQUESTS_RPM', 'ESTIMATED_EARNINGS'], dimensions=['MONTH', 'PLATFORM_TYPE_NAME'], orderBy=['+MONTH']).execute()[image: ppc1.jpg][image: ppc2.jpg] |
| Ad Sense API <adsenseapi@forumsupport.google>: Oct 18 09:34AM Hi, Are you trying to fetch AdMob data? Per the v2 Release Notes, AdMob data will no longer be returned by the AdSense Management API. For that, you will need to migrate to the AdMob API. If it isn't the case that you're fetching AdMob data, could you provide me with a little more information to investigate? You can write a private email to "adsenseapi-tech [at] google [dot] com" with your publisher id. Donovan McMurray AdSense API Team ref:_00D1U1174p._5004Q2PKQQc: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. |
Monday, October 18, 2021
Digest for adsense-api@googlegroups.com - 2 updates in 1 topic
- Migrating to V2 on a wordpress website - 2 Updates
| Afolabi Adebolu <abraham.adebolu@gmail.com>: Oct 15 06:05PM -0700 How do I migrate to v2 using sitekit on a wordpress site? |
| Ad Sense API <adsenseapi@forumsupport.google>: Oct 17 11:21AM Hi, My team does not manage the SiteKit plugin. I would recommend reaching out to Site Kit support directly. Donovan McMurray AdSense API Team ref:_00D1U1174p._5004Q2PKI6B: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, October 15, 2021
Digest for adsense-api@googlegroups.com - 2 updates in 1 topic
- Passing start date & end date Adsense API v2 - 2 Updates
| Viharchandra Maheshkumar Popat <viharchandra@monetizemore.com>: Oct 14 02:59PM -0700 can you please help me with the below-mentioned code? it throws a type error and I am not sure how to resolve it. I assume I am passing the wrong start date and wrong date please help me with the right format to pass it result = self.client.accounts().reports().generate( account=f'accounts/{account id}', startDate={"year": 2021, "month": 10, "day": 12}, endDate={"year": 2021, "month": 10, "day": 13}, metrics=report_job['METRIC'], currencyCode='USD', dimensions=report_job['DIMENSION'], orderBy=['+DATE'], ).execute() |
| Ad Sense API <adsenseapi@forumsupport.google>: Oct 15 02:16AM Hi, It looks like you're using our Python client library, so the code should look like the code below. You can see the full example here. result = service.accounts().reports().generate( account=account_id, dateRange='CUSTOM', startDate_year=2021, startDate_month=3, startDate_day=1, endDate_year=2021, endDate_month=3, endDate_day=31, metrics=['PAGE_VIEWS', 'AD_REQUESTS', 'AD_REQUESTS_COVERAGE', 'CLICKS', 'AD_REQUESTS_CTR', 'COST_PER_CLICK', 'AD_REQUESTS_RPM', 'ESTIMATED_EARNINGS'], dimensions=['MONTH', 'PLATFORM_TYPE_NAME'], orderBy=['+MONTH']).execute() Let me know if you have any other questions. Donovan McMurray AdSense API Team ref:_00D1U1174p._5004Q2PJneZ: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. |
Tuesday, October 12, 2021
Digest for adsense-api@googlegroups.com - 2 updates in 2 topics
| Donovan McMurray <donovanfm@google.com>: Oct 11 02:27PM -0700 As of October 12, 2021, v1.4 of the AdSense Management API is no longer available. If you need to use the AdSense Management API going forward, you should migrate to v2 <https://developers.google.com/adsense/management/migrating>. We're temporarily accepting extension requests for v1.4 of the AdSense Management API. If you would like to request an extension, please send us your project number. Note that this is a short extension period. All extensions will expire on October 26, 2021 regardless of when the request was made. You can request an extension by completing the following steps: 1. Sign into your account in the Google Cloud Platform Console <https://console.cloud.google.com/>. 2. Make sure the correct project is selected. 3. Click IAM & Admin > Settings in the left navigation sidebar. 4. Locate the numeric project number (not the project ID). See the image below for an example of where you can find the project number. 5. Send an email to "adsenseapi-tech [at] google [dot] com" with the subject "Extension Request" and your project number from Step 4. It will take approximately 1 business day for the extension to take effect. [image: adsense_api_extension_instructions.png] |
| Donovan McMurray <donovanfm@google.com>: Oct 11 01:02PM -0700 As of October 12, 2021, v1.4 of the AdSense Management API is no longer available. If you need to use the AdSense Management API going forward, you should migrate to v2 <https://developers.google.com/adsense/management/migrating>. We're temporarily accepting extension requests for v1.4 of the AdSense Management API. If you would like to request an extension, please send us your project number. Note that this is a short extension period. All extensions will expire on October 26, 2021 regardless of when the request was made. You can request an extension by completing the following steps: 1. Sign into your account in the Google Cloud Platform Console <https://console.cloud.google.com/>. 2. Make sure the correct project is selected. 3. Click IAM & Admin > Settings in the left navigation sidebar. 4. Locate the numeric project number (not the project ID). See the image below for an example of where you can find the project number. 5. Send an email to adsenseapi-tech@google.com with the subject "Extension Request" and your project number from Step 4. It will take approximately 1 business day for the extension to take effect. [image: adsense_api_extension_instructions.png] |
| 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, October 7, 2021
Digest for adsense-api@googlegroups.com - 1 update in 1 topic
| Advanced Ads <thomas@wpadvancedads.com>: Sep 30 11:09PM -0700 Hi Donovan, thank you, that is exactly what we were looking for! adsenseapi schrieb am Donnerstag, 30. September 2021 um 22:29:04 UTC+2: |
| 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, October 1, 2021
Digest for adsense-api@googlegroups.com - 2 updates in 1 topic
| Advanced Ads <thomas@wpadvancedads.com>: Sep 30 12:59AM -0700 Hi there, version 2.0 of the AdSense Management API delivers wrong ad unit codes for native ads. Using the codes from the API causes the In-feed ad unit to not show up. In-article and Matched Content show up, but I am not sure if they are identical. I.e., In-article might fall back to display as "Display" ads. An example for In-feed: Code from the API: <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- In-feed --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-123" data-ad-slot="321" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> Code for the same ad unit from the AdSense account UI: <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-123" crossorigin="anonymous"></script> <ins class="adsbygoogle" style="display:block" data-ad-format="fluid" data-ad-layout-key="-6j+ed+2i-1n-4w" data-ad-client="ca-pub-123" data-ad-slot="321"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> This also happened with 1.4, until we reported it a while ago, and then delivering ad unit codes for native ads was at least stopped. That wasn't perfect but allowed us to offer alternatives to users. Was this overlooked in API 2.0 or did I miss something? Thomas |
| Ad Sense API <adsenseapi@forumsupport.google>: Sep 30 08:29PM Hi, Thomas. Thanks for bringing this to our attention. I've raised a bug with an engineer who can correct this issue. For the short term, they will throw errors on in-feed/in-article/matched-content Ad Units, similar to the v1.4 behavior. Long term, they will look into the possibility of sending the same ad codes for these Ad Units as the UI does. Does that solution meet your use case? Donovan McMurray AdSense API Team ref:_00D1U1174p._5004Q2OVV2R: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. |
Tuesday, September 28, 2021
Digest for adsense-api@googlegroups.com - 1 update in 1 topic
| Jess Jiao <jess.jiao@webeye.com>: Sep 27 04:01PM +0800 Hello Google Support Team Thanks. very much for help, manually add scope in the text field does work Kind regards 焦旸 Jess AM Manager of Commercialization Growth +86 138 1402 3290 jess.jiao@webeye.com <jess.jiao> www.webeye.com Building H, 21 Ruanjian Avenue, Nanjing, Jiangsu, China Disclaimer: This email message together with any attachment(s) are confidential and may be legally privileged and are intended solely for the use of the intended recipient. If you are not the intended recipient, please notify the sender immediately and then delete the message from your computer. You should not copy it or disclose its contents to any other person. Ad Sense API <adsenseapi@forumsupport.google> 于2021年9月16日周四 下午11:49写道: |
| 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, September 15, 2021
Digest for adsense-api@googlegroups.com - 1 update in 1 topic
| Jess Jiao <jess.jiao@webeye.com>: Sep 14 05:45AM -0700 Hello, need help with dsense Management API, thanks in-advance When we trying to request data from Adsense Management API, the error message is "error":"code": 403, "message":"Request had insufficient authentication scopes ","errors" :[i"message": "Insufficient Permission ", "domain": " "PERMISSION DENIED"] However when we go to oathplayground, we are not able to find Adsense Management API scope . If this scope is not supported yet, how can we request data through Adsense Management API ? |
| 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 26, 2021
Digest for adsense-api@googlegroups.com - 2 updates in 1 topic
- Deprecation of AdSense Management API v1.4 - 2 Updates
| Chris Hefferman <chrishefferman@me.com>: Aug 24 02:19PM -0700 Hi there, I have a few questions that I'd like answered if that's okay: 1. Is it possible to know if a user's earnings is being held in an AdSense or an AdMob account at all? 2. In your developer documentation for the 'accounts.reports.generate' method it states that 'the response body contains an instance of ReportResult <https://developers.google.com/adsense/management/reference/rest/v2/ReportResult>. However, in my case when testing this on my own earnings for the todays date, I do not receive a 'totals' object - could you let me know why this would be? (see attached response as an example). 3. Lastly, I just want to clarify my understanding: If a user has only an AdSense account, then I should be using the AdSense Management API v2, however if a user also has an AdMob account, then I should be using the AdMob API entirely instead? Thank you, looking forward to hearing back from you. On Thursday, April 29, 2021 at 4:38:13 PM UTC+1 Donovan McMurray wrote: |
| Chris Hefferman <chrishefferman@me.com>: Aug 25 06:42AM -0700 I posted a reply about 24 hours ago that said it needed approval, can you let me know how long it takes to get a comment approved? Thank you On Thursday, April 29, 2021 at 4:38:13 PM UTC+1 Donovan McMurray 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. |
Thursday, July 22, 2021
A reminder about upcoming FeedBurner changes
|
|
Tuesday, July 20, 2021
Digest for adsense-api@googlegroups.com - 2 updates in 1 topic
| Ntinos Mavrakis <konmavrakis@gmail.com>: Jul 15 12:48AM -0700 Hello, I've just sent an email with our main account and a child account. Thanks a lot. On Wednesday, July 14, 2021 at 11:20:09 PM UTC+3 adsenseapi wrote: |
| Ad Sense API <adsenseapi@forumsupport.google>: Jul 19 04:02PM Hi, Thanks for sending your publisher code. Our engineers were able to look into this issue and write a fix for it. Can you try again to verify that the fix is working for you? (There is a separate issue making Payments requests fail intermittently on both v1.4 and v2, so you may have to retry your request.) Donovan McMurray AdSense API Team ref:_00D1U1174p._5004Q2KbsgL: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, July 15, 2021
Digest for adsense-api@googlegroups.com - 2 updates in 1 topic
| Ntinos Mavrakis <konmavrakis@gmail.com>: Jul 14 07:51AM -0700 Hello, We are using our main account to authenticate through a service account json file. Before version 2, we could retrieve information regarding our child accounts without any issues. With version 2 of the AdSense API, we can't and we receive the error mentioned above: { "error":{ "code":500, "message":"Internal error encountered.", "status":"INTERNAL" }} You can replicate it even from the "Try this API" right panel here: https://developers.google.com/adsense/management/reference/rest/v2/accounts.payments/list If we use the child account through here: https://developers.google.com/adsense/management/reference/rest/v1.4/accounts.payments/list we get a response. On Tuesday, July 13, 2021 at 7:03:09 PM UTC+3 adsenseapi wrote: |
| Ad Sense API <adsenseapi@forumsupport.google>: Jul 14 08:20PM Hi, Thanks for providing that additional information. I checked our API server logs, and I found this error happened 5 different times (for different publisher codes). Can you provide the publisher code so I can see which one is yours? You used the placeholder "pub-1111111111111" earlier. Also, if you're not comfortable sharing this value publicly, you can email us at adsenseapi-tech@google.com. In the meantime, I've already alerted an AdSense engineer about this issue, so they'll look into it to see if something is wrong on our side. Donovan McMurray AdSense API Team ref:_00D1U1174p._5004Q2KbsgL: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, July 14, 2021
Digest for adsense-api@googlegroups.com - 2 updates in 1 topic
| Ntinos Mavrakis <konmavrakis@gmail.com>: Jul 05 04:10AM -0700 Environment details - OS: Linux - PHP version: 7.4.1 - Package name and version: google-api-php-client-services / v0.174.0 Code example: $this->service = new \Google_Service_AdSense($this->client); $payments = $this->service->accounts_payments->listAccountsPayments('accounts/pub-1111111111111')->getPayments(); When trying to retrieve the list of payments from a child adsense account, we get the following error: { "error":{ "code":500, "message":"Internal error encountered.", "status":"INTERNAL" }} |
| Ad Sense API <adsenseapi@forumsupport.google>: Jul 13 04:02PM Hi, What user are you using to authenticate your API requests? Does this user have access to the child account? If it's not an issue with the user's permissions, then can you send me the full API request/response? With PHP, you can follow these instructions for how to debug your HTTP requests. Donovan McMurray AdSense API Team ref:_00D1U1174p._5004Q2KbsgL: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, July 1, 2021
Digest for adsense-api@googlegroups.com - 2 updates in 2 topics
- There is a difference between Adsense API and Adsense report - 1 Update
- AdUnit Creation via API - 1 Update
| Ad Sense API <adsenseapi@forumsupport.google>: Jun 30 05:05PM Hi, Were you able to get this working? Be aware that v1.4 and v2 have different defaults if you leave off the timezone field in your API request. For v1.4, useTimezoneReporting defaults to PST/PDT. For v2, reportingTimeZone defaults to your account's timezone. Donovan McMurray AdSense API Team ref:_00D1U1174p._5004Q2HyH8d:ref |
| Ad Sense API <adsenseapi@forumsupport.google>: Jun 30 04:49PM Hi, Lorenzo. Yes, the AdSense Management API is a read-only API. While I can help with API problems, becoming an AdSense Host is an account concern. You would need to talk to someone on the AdSense Help Community to find out about applying to become an AdSense Host. Donovan McMurray AdSense API Team ref:_00D1U1174p._5004Q2HyIId: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, June 9, 2021
Digest for adsense-api@googlegroups.com - 3 updates in 1 topic
- Test Connection 1 - 3 Updates
| Cory Liseno <coryliseno@google.com>: Jun 08 10:56AM -0700 Message 1 |
| Ad Sense API <adsenseapi@forumsupport.google>: Jun 08 06:00PM Reply 1 ref:_00D1U1174p._5004Q2I1BQM:ref |
| Ad Sense API <adsenseapi@forumsupport.google>: Jun 08 06:01PM Reply 2 ref:_00D1U1174p._5004Q2I1BQM: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. |
Subscribe to:
Posts (Atom)



