定制 megaads/ga-service 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

megaads/ga-service

Composer 安装命令:

composer require megaads/ga-service

包简介

Service get report from google analytic, google ads

README 文档

README

#Installation add in file composer.json

"require": {
	"megaads/ga-service": "^1.2"
}

#Get Report From Google Analytic

$KEY_FILE_LOCATION =  '../config/client-secrets.json';
$name = 'Chiaki';
$filter = [
    'viewId' => 'xxxxxxxx',
    'from' => '2020-02-01',
    'to' => '2020-02-25',
    'metrics' => [
       'ga:sessions', 'ga:users', 'ga:bounces'
    ]
];
$gaTransfer = new \GaServices\GoogleAnalytic();
$items = $gaTransfer->report($name, $KEY_FILE_LOCATION, $filter);

#Google Ads

\\ Get cost ads of account
$adsCostAccount = new \GaServices\AdsCostAccount();
$fileConfig = '../config/adsapi_php.ini';
$customerId = 'xxx-xxx-xxxx';
$filter = ['from' => '2020-01-01', 'to' => '2020-01-29']
$cost = $adsCostAccount->report($customerId, $fileConfig, $filter);

统计信息

  • 总下载量: 26
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 5
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-02-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固