Hello! 

I am working on the migration 
from 
https://developers.google.com/adwords/api/docs/reference/v201809/CustomerSyncService#get
 
to get the campaign changes 
to https://developers.google.com/google-ads/api/docs/change-status#java 
using GAQL to get that information but I am not able to get the changes I 
madre in the Google Ads UI.

Does the changes take too much time to be reflected and available to be 
query from "change_status" resource? 

I know that I am creating the query in the correct way since I was able to 
get some of the expected changes in only one test I made.

This is my GAQL 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 DURING LAST_14_DAYS AND 
change_status.campaign = 'customers/{customerId}/campaigns/{campaignId}' 
LIMIT 10000.

The tests I made:
- Change Campaign name
- Remove Campaign Negative Keyword
- Add new Keyword
- Change Adgroup name
- Updated Campaign Type
- Updated Budget
- Update Campaign Status

After the mentioned changes above I didn't get any response after exectute: 

 GoogleAdsClient googleAdsClient = 
googleAdsClientFactory.getGoogleAdsClient();
        try (GoogleAdsServiceClient client = 
googleAdsClient.getLatestVersion().createGoogleAdsServiceClient()) {
            GoogleAdsServiceClient.SearchPagedResponse response = 
client.search(customerID, query);
            return response;
        }

According the documentation, after that we should iterate over the response 
wich means
response.iterateAll() to get each row, but we get an empty list of changes..

*Questions*:
1) Is there something that is not working properly at Google Ads API or 
maybe am I doing something wrong? Please Let me know if you need more 
details about how I am implementing this.
2) Sometimes while I am trying to debug it (for the only case I mentioned 
that it worked for me, I mean, I got only some changes that I made) it got 
an outOfMemory error:

Exception in thread "http-nio-8080-exec-1" java.lang.OutOfMemoryError: 
Metaspace

is that a known issue for you? 

Thanks in advance.

Julian


 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a79387f1-5c58-413a-8689-46ee51302525n%40googlegroups.com.

Reply via email to