How to detect RESOURCE_TEMPORARILY_EXHAUSTED error type

2022-07-20 Thread Marc Donis
We would like to know when a QuotaError has the type RESOURCE_TEMPORARILY_EXHAUSTED. Here is the code we have so far: } catch (GoogleAdsException gae) { for (final GoogleAdsError err : gae.getGoogleAdsFailure(). getErrorsList()) { if (err.getDetails().hasQuotaErrorDetails()

Re: How to detect RESOURCE_TEMPORARILY_EXHAUSTED error type

2022-07-20 Thread Marc Donis
Thanks, but that didn't really answer my question. Can you please provide a code example showing where to find this QuotaErrorEnum.QuotaError.RESOURCE_TEMPORARILY_EXHAUSTED value? I don't see where this enum is actually used. On Wednesday, 20 July 2022 at 18:53:04 UTC+2 adsapi wrote: > Hi Ma

Re: How to detect RESOURCE_TEMPORARILY_EXHAUSTED error type

2022-07-21 Thread Marc Donis
Thank you! This appears to be exactly what I need: for (final GoogleAdsError googleAdsError : gae.getGoogleAdsFailure ().getErrorsList()) { final QuotaError quotaError = googleAdsError.getErrorCode(). getQuotaError(); if (quotaError == QuotaError.RESOURCE_EXHAUSTED

INVALID_STATUS_CHANGE when attempting to setStatus(ManagerLinkStatus.INACTIVE)

2022-09-02 Thread Marc Donis
We are trying to unlink a customer from his manager. The status of the link is ACTIVE, but when we attempt to set it to INACTIVE, we get an INVALID_STATUS_CHANGE error. The funny thing is that, if we unlink the customer manually via the Google Ads UI, then the status is indeed set to INACTIVE.

creating ConversionActions with Java googleads.v14

2023-07-19 Thread Marc Donis
I'm basing my development on this code example , but I'm having some trouble creating and configuring ConversionActions. The docs here

Re: creating conversionactions with java googleads.v14

2023-07-20 Thread Marc Donis
The owner of the client library on Github directed me to Google Ads API Direct Support, who has now directed me back here. Can somebody please tell me how to get the snippet code from a newly created ConversionAction? Even just the Google Tag ID would do fine. Here is my code: final

migrating to v14: what replaces v13 GenerateForecastCurveResponse?

2023-11-30 Thread Marc Donis
We are currently using com.google.ads.googleads.v13.services.GenerateForecastCurveResponse to generate forecast metrics for given keywords. I see that the new v14 approach is described here https://developers.google.com/google-ads/api/docs/keyword-planning/generate-forecast-metrics , but no ad

What replaces campaignServiceClient.getCampaign(campaignResourceName) and adGroupServiceClient.getAdGroup(adGroupResourceName)?

2022-06-30 Thread Marc Donis
We are upgrading from com.google.ads.googleads.v8 to v11, and our code no longer compiles due to these two methods being removed: final Campaign campaign = campaignServiceClient.getCampaign( campaignResourceName); final AdGroup adGroup = adGroupServiceClient.getAdGroup( ad

Re: What replaces campaignServiceClient.getCampaign(campaignResourceName) and adGroupServiceClient.getAdGroup(adGroupResourceName)?

2022-06-30 Thread Marc Donis
Hi Yasar, Thanks for that very prompt reply! I did actually manage to sort this out, thusly: protected static Campaign getCampaign(String resourceName) { final GoogleAdsServiceClient googleAdsServiceClient = googleAdsClient.createGoogleAdsServiceClient(); try { fi