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.

No comments:

Post a Comment