Posts under category Google

Please see this minimum example

I have a static HTML page that looks like this

<!DOCTYPE html> <html>   <head>     <meta charset="UTF-8" />     <meta name="viewport" content="width=device-width, initial-scale=1.0" />     <meta http-equiv="X-UA-Compatible" content="ie=edge" />     <title>New User</title>   </head>   <body>     <!-- Google Analytics Code -->     <script>(function (i, s, o, g, r, a, m) {         i["GoogleAnalyticsObject"] = r;         (i[r] =           i[r] ||           function () {             (i[r].q = i[r].q || []).push(arguments);           }),           (i[r].l = 1 * new Date());         (a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]);         a.async = 1;         a.src = g;         m.parentNode.insertBefore(a, m);       })(         window,         document,         "script",         "https://www.google-analytics.com/analytics.js",         "ga"       );       ga("create", "MY_UA", "auto");       ga("send", "pageview");       ga("send", {         hitType: "event",         eventCategory: "livechatNewUser",         eventAction: "redirect",       });</script>     <!-- Global site tag (gtag.js) -->     <script src="https://www.googletagmanager.com/gtag/js?id=MY_AdWords"></script>     <script>window.dataLayer = window.dataLayer || [];       function gtag() {         dataLayer.push(arguments);       }       gtag("js", new Date());       gtag("config", "MY_AdWords");       gtag("event", "conversion", {         send_to: "MY_AdWords/MY_Label",       });</script>     <script language="javascript">setTimeout(function () {         document.location.href = "/dashboard";       }, 1000);</script>   </body> </html> 

After 3 days, my ga backend is receiving some data

However, my ad words backend is not receiving any data

The date range is the same, Why is this happening?

If I use Google Ads API with Java client library it throws the following exception:

io.grpc.ManagedChannelProvider$ProviderNotFoundException: No functional channel service provider found. Try adding a dependency on the grpc-okhttp, grpc-netty, or grpc-netty-shaded artifact     at io.grpc.ManagedChannelProvider.provider(ManagedChannelProvider.java:43)     at io.grpc.ManagedChannelBuilder.forAddress(ManagedChannelBuilder.java:39)     at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.createSingleChannel(InstantiatingGrpcChannelProvider.java:325)     at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.access$1800(InstantiatingGrpcChannelProvider.java:81)     at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider$1.createSingleChannel(InstantiatingGrpcChannelProvider.java:231)     at com.google.api.gax.grpc.ChannelPool.create(ChannelPool.java:72)     at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.createChannel(InstantiatingGrpcChannelProvider.java:241)     at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.getTransportChannel(InstantiatingGrpcChannelProvider.java:219)     at com.google.api.gax.rpc.ClientContext.create(ClientContext.java:199)     at com.google.ads.googleads.v7.services.stub.GrpcGoogleAdsServiceStub.create(GrpcGoogleAdsServiceStub.java:97)     at com.google.ads.googleads.v7.services.stub.GoogleAdsServiceStubSettings.createStub(GoogleAdsServiceStubSettings.java:185)     at com.google.ads.googleads.v7.services.GoogleAdsServiceClient.<init>(GoogleAdsServiceClient.java:138)     at com.google.ads.googleads.v7.services.GoogleAdsServiceClient.create(GoogleAdsServiceClient.java:119)     at com.google.ads.googleads.lib.catalog.GeneratedCatalog$V7Client.createGoogleAdsServiceClient(GeneratedCatalog.java:4948) 

I'm not sure if it has something to do with how I use the client API. I use other Google APIs where some of them use GoogleSignInAccount, so I extract the access token from the signed in account:

Credentials credentials = OAuth2Credentials.newBuilder()         .setAccessToken(new AccessToken(                 GoogleAuthUtil.getToken(mContext,                         GoogleSignIn.getLastSignedInAccount(mContext).getAccount(),                         "oauth2:" + scope)),                 // Set expiration time in one hour, as credentials are created every time                 // this method is called.                 new Date(System.currentTimeMillis() + 60 * 60 * 1000))         .build(); GoogleAdsClient client = GoogleAdsClient.newBuilder()         .setCredentials(mAuthorizationService.getCredentials(SCOPE_ADWORDS))         .setDeveloperToken(mDeveloperToken)         .build(); String query = "SELECT metrics.cost_micros"         + "FROM campaign "         + "WHERE segments.date BETWEEN '" + getDate(start) + "' AND '" + getDate(end) + "' "; SearchGoogleAdsRequest request = createRequest(client, query); try (GoogleAdsServiceClient googleAdsService = createServiceClient(client)) {     GoogleAdsServiceClient.SearchPagedResponse response = googleAdsService.search(request); } 

The last line is where the exception is raised.

I am using Adwords API. But the support for Adwords will end in 2022. I want to migrate to new Google Ads API. I want to know the equivalent of AD_PERFORMANCE_REPORT(which was in Adwords) in Google Ads.

For example, the equivalent for KEYWORD_PERFORMANCE_REPORT is keyword_view.

I tried to find it a lot but couldn't get it.

Thanks in advance.

I have an Angular SPA web application, register my site to Adsense they approved in 1 day later I inject the codes for showing ads. And other day ads started to shown. 1 hour later I started to see little income. But then income stopped but ads still in my site. Reports on Adsense counts the view but there is no income. Its like this last 3 weeks.

Is there anyone have experience with Adsense and Angular, because I feel like Adsense doesn't work with angular.