Receive the below error.
Edujugon\GoogleAds\Exceptions\Service
The service 'App\Http\Controllers\CampaignService' is not available. Please pass a valid service
Please help me to resolve the issues. Let me know if you need further information. I am waiting for your reply.
Hi.
I am using this library with Laravel 6.
I have configured google-ads.php with the correct configuration. Also, update the 'refreshToken' with the new token received in the console panel.
use Edujugon\GoogleAds\GoogleAds;
Trying to list all the available campaign id and name. Getting this code snippets here and try it like this,
$response = $ads->service(CampaignService::class) ->select(['Id', 'Name', 'Status', 'ServingStatus', 'StartDate', 'EndDate']) ->get();
Please help me to resolve the issues. Let me know if you need further information. I am waiting for your reply.
Thanks.