Hello,
I'm trying to replicate the behaviour to getAccountChanges from AdWords API 
in Google Ads API but it seems there're some differences. For example, I'm 
getting changes in AdWords for an Ad and not getting any changes in 
GoogleAds. This change is later retrieved if you repeat the same request 
the following day. Is this delay in getting changes expected? I'll paste 
both requests here (without the clientCustomerId):

AdWords API request:

***********
2022-03-25 12:59:14,671 DEBUG RemoteCallLoggerDelegate: 
***********
SOAP request:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
    <soapenv:Header>
        <ns1:RequestHeader 
xmlns:ns1="https://adwords.google.com/api/adwords/ch/v201809"; 
soapenv:mustUnderstand="0">
            <ns2:clientCustomerId 
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201809";>XXXXX</ns2:clientCustomerId>
            <ns3:developerToken 
xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201809";>REDACTED</ns3:developerToken>
            <ns4:userAgent 
xmlns:ns4="https://adwords.google.com/api/adwords/cm/v201809";>unknown 
(AwApi-Java, AdWords-Axis/4.15.1, Common-Java/4.15.1, Axis/1.4, 
Java/1.8.0_312, maven)</ns4:userAgent>
            <ns5:validateOnly 
xmlns:ns5="https://adwords.google.com/api/adwords/cm/v201809";>false</ns5:validateOnly>
            <ns6:partialFailure 
xmlns:ns6="https://adwords.google.com/api/adwords/cm/v201809";>false</ns6:partialFailure>
        </ns1:RequestHeader>
    </soapenv:Header>
    <soapenv:Body>
        <get xmlns="https://adwords.google.com/api/adwords/ch/v201809";>
            <selector>
                <dateTimeRange>
                    <ns7:min 
xmlns:ns7="https://adwords.google.com/api/adwords/cm/v201809";>20220323 
125913</ns7:min>
                    <ns8:max 
xmlns:ns8="https://adwords.google.com/api/adwords/cm/v201809";>20220325 
125913</ns8:max>
                </dateTimeRange>
                <campaignIds>1669008391</campaignIds>
            </selector>
        </get>
    </soapenv:Body>
</soapenv:Envelope>

***********
2022-03-25 12:59:14,672 DEBUG RemoteCallLoggerDelegate: 
***********
SOAP response:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
    <soap:Header>
        <ns2:ResponseHeader 
xmlns="https://adwords.google.com/api/adwords/cm/v201809"; 
xmlns:ns2="https://adwords.google.com/api/adwords/ch/v201809";>
            <requestId>0005db0d0b513dbe0803819470023da6</requestId>
            <serviceName>CustomerSyncService</serviceName>
            <methodName>get</methodName>
            <operations>1</operations>
            <responseTime>147</responseTime>
        </ns2:ResponseHeader>
    </soap:Header>
    <soap:Body>
        <ns2:getResponse 
xmlns="https://adwords.google.com/api/adwords/cm/v201809"; 
xmlns:ns2="https://adwords.google.com/api/adwords/ch/v201809";>
            <ns2:rval>
                <ns2:changedCampaigns>
                    <ns2:campaignId>1669008391</ns2:campaignId>
                    
<ns2:campaignChangeStatus>FIELDS_UNCHANGED</ns2:campaignChangeStatus>
                    <ns2:changedAdGroups>
                        <ns2:adGroupId>66118514298</ns2:adGroupId>
                        
<ns2:adGroupChangeStatus>FIELDS_UNCHANGED</ns2:adGroupChangeStatus>
                        <ns2:changedAds>323051597968</ns2:changedAds>
                    </ns2:changedAdGroups>
                </ns2:changedCampaigns>
                <ns2:lastChangeTimestamp>20220325 081316 
PST8PDT</ns2:lastChangeTimestamp>
            </ns2:rval>
        </ns2:getResponse>
    </soap:Body>
</soap:Envelope>

Google Ads API request:

Request
-------
MethodName: google.ads.googleads.v10.services.GoogleAdsService/Search
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=XXXXX, 
x-goog-api-client=gl-java/1.8.0_312 gccl/17.0.0 gapic/17.0.0 gax/2.6.1 
grpc/1.41.0}
Body: customer_id: "XXXXX"
query: "SELECT change_status.campaign, change_status.last_change_date_time, 
change_status.resource_status, change_status.resource_type, 
change_status.ad_group, change_status.ad_group_ad, 
change_status.ad_group_bid_modifier, change_status.ad_group_criterion, 
change_status.ad_group_feed, change_status.campaign, 
change_status.campaign_criterion, change_status.campaign_feed, 
change_status.feed, change_status.feed_item FROM change_status WHERE 
change_status.last_change_date_time >= \'2022-03-23\' AND 
change_status.last_change_date_time <= \'2022-03-25\' AND 
change_status.campaign = \'customers/XXXXX/campaigns/1669008391\' ORDER BY 
change_status.resource_type LIMIT 10000"


Response
--------
Headers: 
Metadata(content-disposition=attachment,content-type=application/grpc,request-id=ZP_bm6wqUHzDyP65DiI8Qw,date=Fri,
 
25 Mar 2022 17:07:39 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443"; 
ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; 
ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43")
Body: field_mask {
  paths: "change_status.campaign"
  paths: "change_status.last_change_date_time"
  paths: "change_status.resource_status"
  paths: "change_status.resource_type"
  paths: "change_status.ad_group"
  paths: "change_status.ad_group_ad"
  paths: "change_status.ad_group_bid_modifier"
  paths: "change_status.ad_group_criterion"
  paths: "change_status.ad_group_feed"
  paths: "change_status.campaign"
  paths: "change_status.campaign_criterion"
  paths: "change_status.campaign_feed"
  paths: "change_status.feed"
  paths: "change_status.feed_item"
}

Failure message: null
Status: Status{code=OK, description=null, cause=null}.


Thanks in advance,
Estanislao Ledesma



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9eeacbf0-cc79-4dcf-9843-bb5cc6b2001cn%40googlegroups.com.
  • Di... Estanislao Ledesma
    • ... Estanislao Ledesma
      • ... Estanislao Ledesma
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to