googleapis / google-api-php-client

A PHP client library for accessing Google APIs
Apache License 2.0
9.2k stars 3.52k forks source link

Support for Search Ads 360 Reporting API #2555

Closed AleeeKoi closed 3 months ago

AleeeKoi commented 5 months ago

Hello, If I'm not wrong this lib is not supporting yet the new "Search Ads 360 Reporting API". If so, when will you add it? Thanks

Hectorhammett commented 3 months ago

@AleeeKoi Hello! Thanks for reaching out!

Looking around a bit I found out that the 360 ADS API should be accessible via the services library here: https://github.com/googleapis/google-api-php-client-services

This gets installed once you install the clients library. You should be able to use the API with something similar to this:

$client = new Google\Client();
$client->setApplicationName("YOUR_APP_NAME");
$client->setDeveloperKey("YOUR_API_KEYS");

$service = new Google\Service\SA360($client);
$service->searchAds360Fields();

And using the the different resources from the client library. I hope this helps!