Get metrics and manage campaigns using PHP Google Ads Library. Source GitHub
Helpful video for configuration of OAUTH in Google Cloud
Include developerToken, loginCustomerId, linkedCustomerId under GOOGLE_ADS
Include clientId, clientSecret, refreshToken under OAUTH2
Pleace .ini file in src folder.
Refresh token can be generated using command php src/Connection/GenerateRefreshToken.php in project root directory.
define("CONFIG_PATH", __DIR__ . '/src/google_ads_php.ini'); Path to config file
define("CUSTOMER_ID", ""); Manager Account Customer Id
define("LINKED_ID", ""); Client Account Customer Id
customer Prints basic customer info.
budget Prints information on account budgets.
keywords Prints stats on keywords.
Prints table with keyword suggestions and average monthly searches.
keywords=1 Required param
keywordOne First keyword
keywordTwo Second keyword