问题描述
我尝试使用以下 ad
对象调用此 API。
var ad = DoubleClickCampaigns.Ads.insert(6485800,{
"campaignId": parseInt(singlePlacementArray[0]),"advertiserId": parseInt(inputSheet.getRange("J9").getValue()),//"accountId": inputSheet.getRange("H9").getValue(),"name": singlePlacementArray[1],"active": true,"archived": false,"type": "AD_SERVING_TRACKING","startDate": Utilities.formatDate(singlePlacementArray[5],ss.getSpreadsheetTimeZone(),"yyyy-MM-dd"),"endDate": Utilities.formatDate(singlePlacementArray[6],"placementAssignments": [
{
"placementId": parseInt(singlePlacementArray[9]),//"sslRequired": false,}
]
});
我收到这个错误,甚至认为 profile_id
是一个整数。
GoogleJsonResponseException: API call to dfareporting.ads.insert failed with error: Invalid value at 'profile_id' (TYPE_INT64),"endDate,2023-06-30,placementAssignments,[Ljava.lang.Object;@7ad1fc95,campaignId,2.2529571E7,type,AD_SERVING_TRACKING,active,true,startDate,2021-05-29,advertiserId,6334010.0,name,video campaign test parallel tracking_cn+Video,archived,false"
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)