tencentad / marketing-api-php-sdk Goto Github PK
View Code? Open in Web Editor NEW腾讯广告API PHP SDK
License: Apache License 2.0
腾讯广告API PHP SDK
License: Apache License 2.0
同问
服务器:腾讯云
偶尔出现下面错误:
[0] cURL error 6: Could not resolve host: api.e.qq.com (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
custom_data 字段内容,为什么参数不能有 / 报string类型错误
项目本身依赖日志库版本是2.0.*;希望对日志库版本提升下
获取异步报表文件
使用:$response = $tads->asyncReportFiles()
->get([
'account_id' => static::$ACCOUNT_ID,
'task_id' => static::$TASK_ID,
'file_id' => static::$FILE_ID,
]);
报错:API response has not code field
原因:https://dl.e.qq.com/v1.1/async_report_files/get body返回的是" account_id....",不是json,没有code
$tads->sendBatchRequest 批量创建的时候,返回设置为数组返回报错。操作查询有成功创建
public function sendBatchRequest($accountId, $batchRequest) { $batchRequestSpec = $this->buildBatchRequest($accountId, $batchRequest); $data = $this->app->batchRequests()->add([ 'batch_request_spec' => $batchRequestSpec, 'account_id' => $accountId, ]); $responses = $data->getList(); $batchHandler = BatchHandler::getInstance(); return $batchHandler->getResponses($batchRequest, $responses); }
Call to a member function getList() on array 错误位置 FILE: C:\phpStudy\domains\Spider\www\ThinkPHP\Library\Vendor\TencentAds\tencent-ad\marketing-api-php-sdk\src\TencentAds\Tools\BatchRequest.php LINE: 31
"guzzlehttp/guzzle": "7.3.0"
版本7.2及以下可以,升级到7.3之后就会报错。
Marketing API MP账户服务升级 weixin_official_accounts_upgrade_enabled 参数 格式化后 为 整数1 而不是 布尔值 true需要调整下
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in */vendor/tencent-ad/marketing-api-php-sdk/src/TencentAds/Model/TargetingTagReportsGetListStruct.php on line 1954
/**
* Gets accountType
*
* @return \TencentAds\Model\AccountType
*/
public function getAccountType()
{
return $this->container['accountType'];
}
上面代码注释中的 @return \TencentAds\Model\AccountType
表示返回的类型为该类对象,但实际返回的是 string 类型的枚举数据,在使用 PHPStan 等代码约束的工具时,整段代码全都是黄色,而且 git 限制了警告过量无法提交,所以希望贵团队将注释 @return
给去除,可以使用 @returnModel
,@returnEnum
这种注释名替换一下,希望尽快解决一下这个问题,感谢🙏
什么时候才能有这个功能呢?现在微信公众账号能创建的推广目标类型太少了,而且业务主要用的推广公众号这个目标类型也不被支持。现在有什么方案能实现吗?或者说后续有计划什么时候实现该功能吗?
tencent-ad/marketing-api-php-sdk v1.1.2 requires guzzlehttp/guzzle ^6.2
目前在用7.2 guzzle
什么时候有Python的SDK,有计划时间吗
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.