这是indexloc提供的服务,不要输入任何密码
Skip to content

xmsumi/google-ads-sandbox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API DOCUMENTATION

Get metrics and manage campaigns using PHP Google Ads Library. Source GitHub

Getting Started

Helpful video for configuration of OAUTH in Google Cloud

Create and configure ini file

Download ini file from source GitHub project.

Include developerToken, loginCustomerId, linkedCustomerId under GOOGLE_ADS

Include clientId, clientSecret, refreshToken under OAUTH2

Template .ini File

Pleace .ini file in src folder.

Refresh Token

Refresh token can be generated using command php src/Connection/GenerateRefreshToken.php in project root directory.

Create a secrets.php file in the project root directory and add the follow values:

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

Endpoints

GET

getInfo

customer Prints basic customer info.

budget Prints information on account budgets.

getStats

keywords Prints stats on keywords.

keywords

Prints table with keyword suggestions and average monthly searches.

keywords=1 Required param
keywordOne First keyword
keywordTwo Second keyword

About

PHP API for Google Ads

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 96.4%
  • Hack 2.9%
  • CSS 0.7%