Hello!
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