anuj607 / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

Issue in Adsense Service Library #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
Fatal error: Uncaught exception 'apiException' with message 'Unknown function: 
adsense->reports->generate()'

What version of the product are you using? On what operating system?
PHP 5.3.4, PHP 5.2.17

Please provide any additional information below.
The issue seems to be in apiAdSenseService.php line 235 where report resource 
is initialized. The json_decode returns NULL.

Original issue reported on code.google.com by manishbh...@gmail.com on 29 Nov 2011 at 8:41

GoogleCodeExporter commented 9 years ago
Google API Client Version 0.4.7 with PHP 5.2.17
Here is a test code which returns

Fatal error: Uncaught exception 'apiException' with message 'Unknown function: 
adsense->reports->generate()' in apiServiceResource.php

Original comment by manishbh...@gmail.com on 3 Dec 2011 at 1:48

Attachments:

GoogleCodeExporter commented 9 years ago
This is now fixed in HEAD.

Original comment by chirags@google.com on 9 Dec 2011 at 5:40

GoogleCodeExporter commented 9 years ago
Thank you. Just another quick query. I see that analytics service has been 
added in the head but i think the same error is in that file too. 
apiAnalyticsService.php[line 285]

The management service resource parameters are wrong and thus when I call the 
methods, it just says method does not exist.

Original comment by manishbh...@gmail.com on 9 Dec 2011 at 6:02

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
the same error occurred for me, how can i solve this?

Fatal error: Uncaught exception 'apiException' with message 'Unknown function: 
adsense->reports->generate()' in 
/hermes/bosweb/web121/b1214/ipg.rcbankorg/stillgalaxy/module/adsense/google-api-
php-client/src/service/apiServiceResource.php:65 Stack trace: #0 
/hermes/bosweb/web121/b1214/ipg.rcbankorg/stillgalaxy/module/adsense/google-api-
php-client/src/contrib/apiAdsenseService.php(155): 
apiServiceResource->__call('generate', Array) #1 
/hermes/bosweb/web121/b1214/ipg.rcbankorg/stillgalaxy/module/adsense/callback.ph
p(30): ReportsServiceResource->generate('2011-12-01', '2011-12-30') #2 {main} 
thrown in 
/hermes/bosweb/web121/b1214/ipg.rcbankorg/stillgalaxy/module/adsense/google-api-
php-client/src/service/apiServiceResource.php on line 65

Original comment by futureg...@gmail.com on 5 Jan 2012 at 10:55

GoogleCodeExporter commented 9 years ago
I am getting the same error. There are no methods available for the adsense 
object. If try to do somenthing like this:

        $adSense = new apiAdsenseService($client);
        echo gettype($adsense);

I get that $adsense type is NULL and the size is 0 bytes.

Original comment by gotardog...@gmail.com on 6 Jan 2012 at 12:28

GoogleCodeExporter commented 9 years ago
I'm having the same issues over here.

Original comment by jpga...@gmail.com on 9 Jan 2012 at 3:05

GoogleCodeExporter commented 9 years ago
I'm having the same problem while using the insert function of Google 
prediction API. Kindly help. Thanks :)

Original comment by sa...@liftsuggest.com on 1 Mar 2012 at 11:59