RE: Discrepancies between reporting metrics from Google Ads API and the Google Ads web UI

2022-10-30 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

Thank you for reaching out to us.

For our team to further check, compare and validate why you are encountering 
this, could you please provide us with the complete API logs (request and 
response with request-id) generated on your end and the whole UI screenshot 
where you can see the data you are referring to?

Note that logs can be requested or provided to the developer handling the 
Google Ads API transactions when logging of the API requests has been enabled. 
You may check here and click your client library for the specific guideline to 
enable it.

For REST interface requests, you can enable logging via the curl command by 
using the -i flag. This will cause the tool to include the HTTP response 
headers in the output.

You may then send the requested information via the Reply privately to the 
author option. If this option is not available, you may send the details 
directly to our googleadsapi-supp...@google.com alias instead.

Best regards,

Heidi
Google Ads API Team
ref:_00D1U1174p._5004Q2fptiN:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/Xm0lo0RKLQ3000IVxEj0WATyW81OBFHV7piA%40sfdc.net.


Discrepancies between reporting metrics from Google Ads API and the Google Ads web UI

2022-10-30 Thread pqm peng
There are differences in the number of clicks, costs, and conversion values 
​​of the Google Ads API campaign and the  Google Ads web UI

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/53378c00-2bb8-4493-8b4a-67f330374934n%40googlegroups.com.


RE: Google Ads API Device Bid Modifiers

2022-10-30 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Alexander,

Thank you for reaching out to us.

For our team to further check, validate why you are not getting your expected 
value, and provide appropriate answers to your question, could you please 
provide us with the complete API logs(request and response with request-id) 
generated on your end and the whole UI screenshot where you can see those 
fields?

Note that logs can be requested or provided to the developer handling the 
Google Ads API transactions when logging of the API requests has been enabled. 
You may check here and click your client library for the specific guideline to 
enable it.

For REST interface requests, you can enable logging via the curl command by 
using the -i flag. This will cause the tool to include the HTTP response 
headers in the output.

You may then send the requested information via the Reply privately to author 
option. If this option is not available, you may send the details directly to 
our googleadsapi-supp...@google.com alias instead.

Best regards,

Heidi
Google Ads API Team
ref:_00D1U1174p._5004Q2fpZxK:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/X-FNf0RKLK4000j4B1cyezTbecrkLwlrr7Mw%40sfdc.net.


I am facing issue for retrieving access token from refresh token

2022-10-30 Thread Hardik Masalawala
I am not able to get new access token using refresh token 
*ERROR : The remote server returned an error: (400) Bad Request.*

public static string PostMethod(string baseAddress, string data)
{
try
{
HttpWebRequest request = HttpWebRequest.Create(baseAddress) as 
HttpWebRequest;
string result = null;
request.Method = "POST";
request.KeepAlive = true;
request.ContentType = "application/x-www-form-urlencoded;";
string param = string.Format(data);
var bs = Encoding.UTF8.GetBytes(param);
using (Stream reqStream = request.GetRequestStream())
{
reqStream.Write(bs, 0, bs.Length);
}
using (WebResponse response = request.GetResponse())
{
var sr = new StreamReader(response.GetResponseStream());
result = sr.ReadToEnd();
sr.Close();
}
return result;
}
catch (Exception ex)
{
throw;
}
}


private string GetToken(GmailIntegrationModel gmailIntegrationModel, string 
subscribedCompanyId)
{
_logger.LogDebug("GetToken in.");
try
{
//string Url = "https://www.googleapis.com/oauth2/v4/token?";;
string Url = "https://accounts.google.com/o/oauth2/token";;
var credentials = GetGmailCredentials(subscribedCompanyId);
var data = "client_id=" + credentials.UserName + "&client_secret=" 
+ credentials.ApiKey + "&refresh_token=" + 
gmailIntegrationModel.Refresh_Token + "&grant_type=refresh_token";
var result = CommonMethod.PostMethod(Url, data);
var res = 
JsonConvert.DeserializeObject(result);
return res.Access_token;

}
catch (Exception ex)
{
_logger.LogError(ex.Message, ex);
throw;
}
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5fdc1c4d-d85b-4581-b7de-05b513c7594fn%40googlegroups.com.