RE: Get Keyword Idea - return DeadlineExceededErrors

2019-03-29 Thread googleadsapi-forumadvisor via AdWords API and Google Ads API Forum


Hi Zied,

You can find how Google Ads API calls are structured here
  
and

how the request and response look. You can find steps on how to enable
logging from our client libraries. Here
 are
steps on how to enable them through Java. Alternatively, if you can send me
your requestId, that would help too.

Regards,
Anthony
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
https://ads-developers.googleblog.com/search/label/google_ads_api
https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 03/29/19 04:26:55 acteol.adv...@gmail.com wrote:

Hi Anthony,

How can I get my request and response?
I'm using Google Ads API (not Google AdWords API) and Fiddler can't catch
the traffic coming from the API.
Fiddler can only catch request and response from AdWords API.

Thanks,
Zied

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/02209562-aa42-4e31-a9f3-e5d3bc134438%40googlegroups.com

.
For more options, visit https://groups.google.com/d/optout.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 "AdWords API and Google Ads API Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/1a0kq2o0o4g2060002pmc6y6gmj4dpn64o30c1g68r34c1k%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Get Keyword Idea - return DeadlineExceededErrors

2019-03-29 Thread Zied Chaari
Hi Anthony,

How can I get my request and response?
I'm using Google Ads API (not Google AdWords API) and Fiddler can't catch 
the traffic coming from the API.
Fiddler can only catch request and response from AdWords API.

Thanks,
Zied

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/02209562-aa42-4e31-a9f3-e5d3bc134438%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Get Keyword Idea - return DeadlineExceededErrors

2019-03-28 Thread googleadsapi-forumadvisor via AdWords API and Google Ads API Forum


Hi Zied,

Can you please share your request and response through *reply privately to
author *so I can take a closer look?

Thanks,
Anthony
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 03/28/19 06:03:52 acteol.adv...@gmail.com wrote:

Hi all,

Sometimes when i'm trying to get keywords Idea, using
KeywordPlanIdeaServiceClient Service (Google Ads Api V1.0), I'm getting an
error saying DeadlineExceededError.
What should I do?

You can find my code bellow.

public dynamic searchKeyword(GoogleAdsClient client, string customerId,
string keywordTexts, string pageUrl)
{
List keyword_results = new List();
KeywordPlanIdeaServiceClient keywordPlanIdeaService =
client.GetService(Services.V1.KeywordPlanIdeaService);

GenerateKeywordIdeasRequest request = new
GenerateKeywordIdeasRequest()
{
CustomerId = customerId
};
if (keywordTexts.Length == 0)
{
request.UrlSeed = new UrlSeed()
{
Url = pageUrl
};
}
else if (string.IsNullOrEmpty(pageUrl))
{
request.KeywordSeed = new KeywordSeed();
request.KeywordSeed.Keywords.Add(keywordTexts);
}
else
{
request.KeywordAndUrlSeed = new KeywordAndUrlSeed();
request.KeywordAndUrlSeed.Url = pageUrl;
request.KeywordAndUrlSeed.Keywords.Add(keywordTexts);
}
request.Language = ResourceNames.LanguageConstant(1000);
try
{
GenerateKeywordIdeaResponse response =
keywordPlanIdeaService.GenerateKeywordIdeas(request);
foreach (GenerateKeywordIdeaResult result in
response.Results)
{
KeywordPlanHistoricalMetrics metrics =
result.KeywordIdeaMetrics;
dynamic keyword_result = new ExpandoObject();
keyword_result.Text = result.Text;
keyword_result.AvgMonthlySearches =
metrics.AvgMonthlySearches ?? 0;
keyword_result.Competition = metrics.Competition;
keyword_results.Add(keyword_result);
}
}
catch (Exception e)
{
throw;
}
return keyword_results.OrderByDescending(K =>
K.AvgMonthlySearches);
}


Thanks,
Zied

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/01456b2d-a07d-40e2-9553-721fa54854dc%40googlegroups.com

.
For more options, visit https://groups.google.com/d/optout.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 "AdWords API and Google Ads API Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/186un5o001erb2001honikz6gmj4dpn64o30c1g68r34c1k%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Get Keyword Idea - return DeadlineExceededErrors

2019-03-28 Thread Zied Chaari
Hi all,

Sometimes when i'm trying to get keywords Idea, using 
KeywordPlanIdeaServiceClient Service (Google Ads Api V1.0), I'm getting an 
error saying DeadlineExceededError.
What should I do?

You can find my code bellow.

public dynamic searchKeyword(GoogleAdsClient client, string customerId, 
> string keywordTexts, string pageUrl)
> {
> List keyword_results = new List();
> KeywordPlanIdeaServiceClient keywordPlanIdeaService = 
> client.GetService(Services.V1.KeywordPlanIdeaService);
> 
> GenerateKeywordIdeasRequest request = new 
> GenerateKeywordIdeasRequest()
> {
> CustomerId = customerId
> };
> if (keywordTexts.Length == 0)
> {
> request.UrlSeed = new UrlSeed()
> {
> Url = pageUrl
> };
> }
> else if (string.IsNullOrEmpty(pageUrl))
> {
> request.KeywordSeed = new KeywordSeed();
> request.KeywordSeed.Keywords.Add(keywordTexts);
> }
> else
> {
> request.KeywordAndUrlSeed = new KeywordAndUrlSeed();
> request.KeywordAndUrlSeed.Url = pageUrl;
> request.KeywordAndUrlSeed.Keywords.Add(keywordTexts);
> }
> request.Language = ResourceNames.LanguageConstant(1000);
> try
> {
> GenerateKeywordIdeaResponse response = 
> keywordPlanIdeaService.GenerateKeywordIdeas(request);
> foreach (GenerateKeywordIdeaResult result in 
> response.Results)
> {
> KeywordPlanHistoricalMetrics metrics = 
> result.KeywordIdeaMetrics;
> dynamic keyword_result = new ExpandoObject();
> keyword_result.Text = result.Text;
> keyword_result.AvgMonthlySearches = 
> metrics.AvgMonthlySearches ?? 0;
> keyword_result.Competition = metrics.Competition;
> keyword_results.Add(keyword_result);
> }
> }
> catch (Exception e)
> {
> throw;
> }
> return keyword_results.OrderByDescending(K => 
> K.AvgMonthlySearches);
> }


Thanks,
Zied 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/01456b2d-a07d-40e2-9553-721fa54854dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.