Been trying to make a simple campaign reports using PHP/Laravel, tried to follow docs and search on Google but running into a wall. Is there a way to find out what the actual headers are being sent? I pieced together the code from the help docs and random google searches, feels like I am missing something basic?
$oAuth2Credential = (new OAuth2TokenBuilder())
->fromFile(storage_path('google_ads_php.ini'))
->build();
$googleAdsClient = (new GoogleAdsClientBuilder())
->fromFile(storage_path('google_ads_php.ini'))
->withOAuth2Credential($oAuth2Credential)
->withDeveloperToken(env('GOOGLE_DEVELOPER_KEY'))
->withLoginCustomerId($this->managerCustomerId)
->build();
$query = 'SELECT
campaign.id,
campaign.name FROM campaign ORDER BY
campaign.id';
$response = $googleAdsClient->getGoogleAdsServiceClient()->searchStream(
SearchGoogleAdsStreamRequest::build($customerId, $query)
);