Google Laravel Example Giving Stream NULL *need help*

32 views
Skip to first unread message

Floyd van der weij

unread,
Dec 9, 2020, 5:11:16 AM12/9/20
to AdWords API and Google Ads API Forum
Hello, i have been working with Google ads over 2 weeks now, without any progress.

I tried making my own app, then used examples and then i went over to just debug stuff without any progress.

Now im at the laravel Example from google 
and everything finally looked like it worked but im getting the error :


```
{ "message": "Request contains an invalid argument.", "code": 3, "status": "INVALID_ARGUMENT", "details": [ { "@type": "google.ads.googleads.v6.errors.googleadsfailure-bin", "data": "<Unknown Binary Data>" }, { "@type": "grpc-status-details-bin", "data": "<Unknown Binary Data>" }, { "@type": "request-id", "data": "PQ2-pLYC_X7l0INbaqs9ww" } ] } 
```
I traced it back to  The tag $stream 
```
$stream = $googleAdsClient->getGoogleAdsServiceClient()->searchStream(
$customerId,
$query
);
```

i var_dumped the stream and i got : 
```
object(class@anonymous)[22680] private 'responseMetadata' => object(Google\Ads\GoogleAds\Lib\V6\GoogleAdsResponseMetadata)[22616] private 'metadata' => array (size=0) empty protected 'serverStream' => object(class@anonymous)[22679] private 'statusMetadataExtractor' => object(Google\Ads\GoogleAds\Lib\V6\StatusMetadataExtractor)[22675] protected 'serverStream' => object(Google\ApiCore\ServerStream)[22683] private 'call' => object(Google\Ads\GoogleAds\Lib\V6\GoogleAdsLoggingServerStreamingCall)[22681] ... private 'resourcesGetMethod' => null private 'call' (Google\ApiCore\ServerStream) => null private 'resourcesGetMethod' (Google\ApiCore\ServerStream) => null private 'call' (Google\ApiCore\ServerStream) => null private 'resourcesGetMethod' (Google\ApiCore\ServerStream) => null 
```

what am i doing wrong?

Google Ads API Forum Advisor Prod

unread,
Dec 10, 2020, 3:05:34 PM12/10/20
to floy...@gmail.com, adwor...@googlegroups.com
Hello,

Thank you for reaching out. Can you please share the detailed request and response logs using the reply privately to author so that we can investigate this issue? You can find information on enabling logging here

Laravel appears to be a third party API, so I would recommend reaching out to them for assistance as well.

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q28oYVo:ref

Floyd van der weij

unread,
Dec 15, 2020, 8:30:00 AM12/15/20
to AdWords API and Google Ads API Forum
I cant react to author but, id like to close this. because i have dropped the Laravel Project and went over to make my own application that has intergrated Google Ads.

i will make an other Ticket/Conversation in the future because i do have questions about the Ads API
-Floyd
Op donderdag 10 december 2020 om 21:05:34 UTC+1 schreef adsapiforumadvisor:
Reply all
Reply to author
Forward
0 new messages