Posts under category Google

Good morning i having a problem with google Ads api. I am coding with .net environment with client library provided by google and i followed the documentation on google site to configure api request to create campaign, group and ads automatically. I did a simple test site to test api but execution stops or better never stop but it seems in a infinite loop after call of line:

  MutateCampaignBudgetsResponse response = budgetService.MutateCampaignBudgets(customerId.ToString(), new CampaignBudgetOperation[] { budgetOperation }); 

I can't solve this problem because no exception or error is thrown. This is the link of google documentation i have followed: https://developers.google.com/google-ads/api/docs/start Thank you

I see there is a REST API for blocking placements at a customer level.

But I cannot find if there is an API (preferably REST) for blocking at an ad-group level.

Is it only possible to remove an existing placement, but not blocking for the future as well (like possible at an account level)?

Blocking at an account level ("NegativeCriteria"): https://developers.google.com/google-ads/api/rest/reference/rest/v10/customers.customerNegativeCriteria/mutate

I'm building a game in Unity that uses AdMob ads. In the app I only have one screen (a map with objects). I want to add a rewarded ad to 1) speed up an upgrade 2) unlock boosters. They all are on one map (one activity). In this case should I use 2 ad units or only a single is ok? I am aware that I should use one ad unit per activity but how does it apply to my case?

** can google punish me (make some limits) for too many requests if I use more (10+) ad units in one screen?

Recently I have been trying to create a script to retrieve either an accounts or individual campaigns optimisation scores and subsequently send a email including this. My problem is that I cannot find optimisation score in stats or metrics anyway I try.

Does anyone know if this is even a retrievable variable in scripts?

I am working with Google Ads API. Based on my use case, I need to get the impressions, clicks, and other statistics about the products based on location(Without creating the campaign).

I contacted the Google Ads API team to address the issue but the doc reference they provided me didn't work in my case. (I'm not using keywords also)

  1. generate forecast metrics

And also the query I used to access the data is...

public void queryTest(long customerId,String campaignId) {     try (GoogleAdsServiceClient googleAdsServiceClient =                  googleAdsClient.getLatestVersion().createGoogleAdsServiceClient()) {         SearchGoogleAdsStreamRequest request =                 SearchGoogleAdsStreamRequest.newBuilder()                         .setCustomerId(Long.toString(customerId))                         .setQuery("SELECT metrics.clicks, metrics.impressions,geographic_view.country_criterion_id FROM geographic_view WHERE geographic_view.country_criterion_id = 1009919")                         .build();         ServerStream<SearchGoogleAdsStreamResponse> stream =                 googleAdsServiceClient.searchStreamCallable().call(request);         for (SearchGoogleAdsStreamResponse response : stream) {             for (GoogleAdsRow googleAdsRow : response.getResultsList()) {                 System.out.println("outPut"+googleAdsRow.getGeographicView());             }         }     } } 

Can someone please help me to resolve this issue?? Thank you!!