bububa / oceanengine Goto Github PK
View Code? Open in Web Editor NEW巨量引擎marketing-api golang sdk
Home Page: https://open.oceanengine.com
License: Apache License 2.0
巨量引擎marketing-api golang sdk
Home Page: https://open.oceanengine.com
License: Apache License 2.0
比如
若接口里的 product_rate
返回 0
, 序列化的时候就会忽略掉这个字段
或者把所有结构体成员类型都改为指针类型, 也能避免这个问题, 比如广点通就是这么干的
不知道大家有啥想法
vendor/github.com/bububa/oceanengine/marketing-api/model/report/v3/dimensions.go
下的
CustomDimensions.StatTimeWeek这个结构体的字段为什么是int类型?Unmarshal的时候报错了
创建DPA商品:返回40000:product_info.first_category_id: Field must be set to string or not be present
https://open.oceanengine.com/labels/7/docs/1726081566816271
接口响应:filtering: ids.0: number must be at least 1
https://open.oceanengine.com/labels/7/docs/1696710540735500
对于超过10000条记录的, 不能使用page分页
type RejectReason struct
的 PromotionReject
文档和实际返回都是数组,而代码中定义了一个对象指针。
文档: https://open.oceanengine.com/labels/34/docs/1741031528693771
// 文件:[email protected]/marketing-api/model/v3/promotion/reject_reason.go
// RejectReason 计划审核意见
type RejectReason struct {
// PromotionID 广告ID
PromotionID uint64 `json:"promotion_id,omitempty"`
// PromotionReject 广告维度审核建议
PromotionReject *PromotionReject `json:"promotion_reject,omitempty"`
// MaterialReject 素材维度审核建议
MaterialReject []MaterialReject `json:"material_reject,omitempty"`
}
Debug 下的日志
2023/03/24 10:25:12 [DEBUG] [API] http response body:
{
"code": 0,
"message": "OK",
"request_id": "20230324102511A1EB8DE18F3FF23E20F7",
"data": {
"list": [
{
"material_reject": [],
"promotion_id": 7212970322193350712,
"promotion_reject": []
}
]
}
}
2023/03/24 10:25:12 [DEBUG] [ERROR] json: cannot unmarshal array into Go struct field RejectReason.data.list.promotion_reject of type promotion.PromotionReject
\github.com\bububa\[email protected]\marketing-api\model\report\metrics.go
这个文件下却是 视频完成数(PlayOver),大佬有空改一下
接口响应:filtering: ids.0: number must be at least 1
您好,请问怎么联系您?
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.