Hi,

I'm writing a PHPUnit test for code using Google Ads API Library.

"googleads/google-ads-php": "^10.0
"google/protobuf": "^3.17"
"phpunit/phpunit": "^8.5"
php version: 7.4

While trying to mock GoogleAdsRow::class I'm getting an error.

EG:

<?php
namespace GoogleAds;
use Google\Ads\GoogleAds\V8\Services\GoogleAdsRow;
use PHPUnit\Framework\TestCase;
class GoogleAdsBugTest extends TestCase {
  public function testBug(): void
  {
    $googleAdsRow = $this->createMock(GoogleAdsRow::class);
  }
}

I've also tried building as:
$googleAdsRow = new GoogleAdsRow();
$googleAdsRow->setAdGroup($adGroup);
$googleAdsRow->setMetrics($metrics);
$googleAdsRow->setSegments($segments);

But is also resolves as an error.

Are you aware of this issue? Is there a way to work around it?

Let me know if you need any more details.

Best,
Andjel

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/61ccd154-0d2c-4036-b5c1-ddeb2ccc45d6n%40googlegroups.com.

Reply via email to