我在 Boomi 中有一个可以从 GAM API 中提取数据的进程。我一直在使用它来提取维度和列,但我无法弄清楚如何提取维度属性。
当我将其添加到 xml 请求以运行报告时,我收到此错误:在 Mogo Google Ad Manager 连接中处理原始文档 i1i 失败 - 行项目节奏连接器:com.boomi.connector.api.ConnectorException:错误代码:soap :客户端错误消息:解组错误:cvc-complex-type.2.4.a:发现以元素“{“https://www.google.com/apis/ads/publisher/v202011”:columns}'开头的无效内容. '{"https://www.google.com/apis/ads/publisher/v202011":dimensionAttributes, "https://www.google.com/apis/ads/publisher/v202011":customFieldIds, "https ://www.google.com/apis/ads/publisher/v202011":cmsMetadataKeyIds, "https://www.google.com/apis/ads/publisher/v202011":customDimensionKeyIds, "https://www.google .com/apis/ads/publisher/v202011":startDate,
这是我正在使用的 xml:
'<?xml version="1.0" encoding="UTF-8"?>
<runReportJob xmlns="https://www.google.com/apis/ads/publisher/v202011">
<reportJob>
<reportQuery>
<dimensions>DATE</dimensions>
<dimensions>LINE_ITEM_NAME</dimensions>
<dimensionAttributes>LINE_ITEM_LIFETIME_IMPRESSIONS</dimensionAttributes>
<columns>TOTAL_LINE_ITEM_LEVEL_IMPRESSIONS</columns>
<startDate>
<year>'{6}'</year>
<month>'{5}'</month>
<day>'{4}'</day>
</startDate>
<endDate>
<year>'{3}'</year>
<month>'{2}'</month>
<day>'{1}'</day>
</endDate>
</reportQuery>
</reportJob>
</runReportJob>'
没有维度属性行它可以正常工作,但是当我添加它时它甚至不会运行。语法有问题吗?我以此为基础: https ://developers.google.com/ad-manager/api/reference/v202108/ReportService.ReportQuery
谢谢!