Posts tagged with ads

I am using google ads api and displaying Google adwords ads on our site. At every request the terminal displaying logging request and response. I want to know that is there any way to disable request/response Info from console. I am using google ads java library. I tried to use new RequestLogger But I could not disable that. Below is the given message type which I am getting at every google ads api call.

com.google.api.client.http.HttpTransport [] - -------------- REQUEST  -------------- POST https://oauth.googleapis.com/token Accept-Encoding: gzip User-Agent: Google-HTTP-Java-Client/1.39.0 (gzip) Content-Type: application/x-www-form-urlencoded; charset=UTF-8 Content-Length: 241 com.google.api.client.http.HttpTransport [] - curl -v --compressed -X POST -H 'Accept-Encoding: gzip' -H 'User-Agent: Google-HTTP-Java-Client/1.39.0 (gzip)' -H 'Content-Typ e: application/x-www-form-urlencoded; charset=UTF-8' -d '@-' -- 'https://oauth2.googleapis.com/token' << $$$ com.google.api.client.http.HttpTransport [] - Total: 241 bytes com.google.api.client.http.HttpTransport [] - client_id=xxxx&refresh_token=xxxx&grant_type=refresh_token com.google.api.client.http.HttpTransport [] - -------------- RESPONSE -------------- HTTP/1.1 200 OK Transfer-Encoding: chunked Alt-Svc: h3=":443"; ma=2592000,h3-29=":111"; ma=333,h3-T051=":3"; ma=000,h3-Q050=":443"; ma=2000,h3-Q046=":443"; ma=2592000,h3-Q043=":443" 46,43" Server: scaffolding on HTTPServer2 X-Content-Type-Options: nosniff Pragma: no-cache 

I have set up a Google Ads campaign.

If users search "Cool Clothes" in Google, my campaign website will show in search results.

Now, the user will follow these steps:

  1. Click the campaign website link in the Google search result
  2. Go to https://cool-clothes.com/my-campaign
  3. The user wants to signup an account, so users click the "Sign Up" button
  4. I use Facebook for login, so users will redirect to https://facebook.com first, asking for some permissions.
  5. After permission granted, Facebook will redirect back to my website called https://cool-clothes.com/new-user
  6. https://cool-clothes.com/new-user is where I put the Google Ads tracking code

https://cool-clothes.com/new-user HTML looks like this:

<!DOCTYPE html> <html lang="en">   <head>     <meta charset="UTF-8" />     <meta http-equiv="X-UA-Compatible" content="IE=edge" />     <meta name="viewport" content="width=device-width, initial-scale=1.0" />     <title>Cool Clothes</title>     <!-- Global site tag (gtag.js) -->     <script       async       src="https://www.googletagmanager.com/gtag/js?id=AW-XXX"     ></script>     <script>window.dataLayer = window.dataLayer || [];       function gtag() {         dataLayer.push(arguments);       }       gtag("js", new Date());       gtag("config", "AW-XXX");</script>     <!-- Event snippet for conversion page -->     <script>gtag("event", "conversion", {         send_to: "AW-XXX/XXX",       });</script>   </head>   <body>     Thanks for Sign Up!   </body> </html> 

Here comes my question, the user goes through multiple different HTML pages, how did Google Ads know how to count the conversion?

Are Google Ads using first-party cookies to do this?

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 want to use reporting HTTP endpoints for that I send a request with postman But every time I getting AUTHENTICATION_ERROR.

My oAuth2 response :

{"token":{"access_token":"ya29.a0AfH6SMCyU5L******","refresh_token":"1//09Iryk6eZYKj0CgYIA********","scope":"https://www.googleapis.com/auth/youtube.upload https://www.googleapis.com/auth/youtube.readonly https://www.googleapis.com/auth/adwords","token_type":"Bearer","expiry_date":1624622265323}}

I used "ya29.a0AfH6SMCyU5L******" as access_token for request header.

And my postman request like that:

Where did I make mistake? How can I solve this issue?