Hi,

My apologies as we do not support other third party platform integration 
with AdWords API like Laravel in this forrum. Our team could only provide 
support on AdWords API related issues/concerns. However, for basic 
operations like getting all your campaigns, you could check this sample code 
<https://developers.google.com/adwords/api/docs/samples/php/basic-operations#get-all-campaigns>
 in 
PHP for your reference. If you encounter any issues related to AdWords API, 
feel free to write back.

Thanks and regards,
Luis
AdWords API Team

On Friday, August 3, 2018 at 9:40:19 AM UTC+8, Mnk wrote:
>
> 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 
>
> {{ $data['monitor'] }}
>
>
> 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
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d6aee70f-4ad3-423a-b1f9-40a224560403%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... Mnk
    • ... 'Luis Xander Talag (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... Mnk
        • ... 'Luis Xander Talag (AdWords API Team)' via AdWords API and Google Ads API Forum
    • ... Mnk

Reply via email to