Hi All,
First, excuse me for my english :)
I try to use a basic operation with laravel. I don't have the problem with my token because i use another option with the API and they working good.
I configure all that i need :
- adsapi_php ( with the developerToken etc)
- Controller where i call the dependency
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Ixudra\Curl\Facades\Curl;
use App\Services\GetCampaigns; //the script from Adwords API for get all the campaings
create the function like :
public function montest()
{
$result = GetCampaigns::main();
//return $result;
$data = [
'monitor'=> $result
];
return view('monitoring', compact('data'));
}
- And the view. Easy just
When i try i get this error ( you can see a print in attachment):
htmlspecialchars() expects parameter 1 to be string, object given
What i doing wrong ? The target is to get all the campaings on my adwords account.
Do you have an idea?
Thanks for you help