Google client 双击脱机转换API删除重复记录?

Google client 双击脱机转换API删除重复记录?,google-client,double-click-advertising,Google Client,Double Click Advertising,尝试将DoubleClick API与此处描述的Google客户端PHP SDK一起使用 我发现这些转换并没有更新,而是从我们的报告中删除了。我怀疑重复数据消除有问题,但我不希望转换被完全删除 我基本上是这样做的: $conversion = new Google_Service_Dfareporting_Conversion(); $conversion->setKind("dfareporting#conversion"); $conversion->

尝试将DoubleClick API与此处描述的Google客户端PHP SDK一起使用

我发现这些转换并没有更新,而是从我们的报告中删除了。我怀疑重复数据消除有问题,但我不希望转换被完全删除

我基本上是这样做的:

    $conversion = new Google_Service_Dfareporting_Conversion();

    $conversion->setKind("dfareporting#conversion");

    $conversion->setGclid($clickId);
    $conversion->setFloodlightActivityId($this->getActivityId());
    $conversion->setFloodlightConfigurationId($this->getConfigId());
    $conversion->setOrdinal($conversionId);
    $conversion->setTimestampMicros($conversionTimestamp);

    $conversion->setQuantity(1);
    $conversion->setValue($revenue);

    $doubleClickSearch = new Google_Service_Dfareporting($this->getGoogleApiClient());
    $conversionList = new Google_Service_Dfareporting_ConversionsBatchUpdateRequest();
    $conversionList->setKind("dfareporting#conversionsBatchUpdateRequest");
    $conversionList->setConversions([$conversion]);
    return $doubleClickSearch->conversions->batchupdate($this->getUserProfileId(), $conversionList);
当它运行时,它会按预期工作:

    {"hasFailures":false,
      "kind":"dfareporting#conversionsBatchUpdateResponse",
        "status":[
          {"kind":"dfareporting#conversionStatus",
           "conversion":{  
               "childDirectedTreatment":null,
               "encryptedUserId":null,
               "encryptedUserIdCandidates":null,
               "floodlightActivityId":"redacted",
               "floodlightConfigurationId":"redacted",
               "gclid":"redacted",
               "kind":"dfareporting#conversion",
               "limitAdTracking":null,
               "mobileDeviceId":null,
               "ordinal":"redactedConversionId",
               "quantity":"1",
               "timestampMicros":"1532697843000000",
               "value":885
             }
          }
      ]
   }
但是,当我们在之后运行报告时,这个特定的转换不再是它的一部分:它不仅不接受更新,而且转换已被完全删除

我已经验证了序号、时间戳、gclid、activityId和配置ID都匹配。你知道我的转换要去哪里吗

我将注意到,我们也在为创建运行batchUpdate命令。我不确定这是否与此有关,但这些记录确实是正常创建的