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

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

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.