Re: Google Adword API - Not getting data for some of the Keywords.

2020-11-25 Thread Google Ads API Forum Advisor Prod
Hi Neetu,

Unfortunately, our team is unable to open or access the file that you have 
attached. Furthermore, I had to delete your response and re-post it below as 
the file you contained may contain your account information.

"Hello Ernie,
Greetings of the day!!
I am using the same script which you have mentioned in the document.

I have attached the response screenshot here, and I searching keyword stats for 
"trump and Biden in my request". Please have a look at my attachment.

As I am getting data i.e "KEYWORD_TEXT, SEARCH_VOLUME, AVERAGE_CPC, 
COMPETITION" for many keywords like "Paytm, cycle, cab, amazon, bakery, etc". 
So the script which I shared on the above email chain is working fine, the only 
thing is not providing data for a few keywords like -Covid 19, trump, Biden, 
etc."

That said, since you are not able to reply privately, could you please send a 
more accessible set of files/details directly to our 
googleadsapi-supp...@google.com alias instead?

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q27v7E8: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 
"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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4iIer0QKDUYB00CgdTTWMJS66S2f6oQY2Kaw%40sfdc.net.


Re: Google Adword API - Not getting data for some of the Keywords.

2020-11-23 Thread Neetu Varshney
Hello Peter,
Can you share your piece of code for the keywords "trump, biden" that is 
working nicely on your side?
Also, I do not have permission for the option for "Reply privately to 
author".

*Here is my request file:-*

get($session, 
TargetingIdeaService::class);

// Create selector.
$selector = new TargetingIdeaSelector();
$selector->setRequestType(RequestType::STATS);
$selector->setIdeaType(IdeaType::KEYWORD);
$selector->setRequestedAttributeTypes(
[
AttributeType::KEYWORD_TEXT,
AttributeType::SEARCH_VOLUME,
AttributeType::AVERAGE_CPC,
AttributeType::COMPETITION,
AttributeType::CATEGORY_PRODUCTS_AND_SERVICES
]
);

$paging = new Paging();
$paging->setStartIndex(0);
$paging->setNumberResults(10);
$selector->setPaging($paging);

$searchParameters = [];
// Create related to query search parameter.
$relatedToQuerySearchParameter = new RelatedToQuerySearchParameter();
*$relatedToQuerySearchParameter->setQueries(*
* [*
*'Trump', 'biden'*
* ]*
* );*
$searchParameters[] = $relatedToQuerySearchParameter;

// Create language search parameter (optional).
// The ID can be found in the documentation:
// https://developers.google.com/adwords/api/docs/appendix/languagecodes
$languageParameter = new LanguageSearchParameter();
$english = new Language();
$english->setId(1000);
$languageParameter->setLanguages([$english]);
$searchParameters[] = $languageParameter;

// Create network search parameter (optional).
$networkSetting = new NetworkSetting();
$networkSetting->setTargetGoogleSearch(true);
$networkSetting->setTargetSearchNetwork(false);
$networkSetting->setTargetContentNetwork(false);
$networkSetting->setTargetPartnerSearchNetwork(false);

$networkSearchParameter = new NetworkSearchParameter();
$networkSearchParameter->setNetworkSetting($networkSetting);
$searchParameters[] = $networkSearchParameter;

// Optional: Use an existing ad group to generate ideas.
if (!empty($adGroupId)) {
$seedAdGroupIdSearchParameter = new SeedAdGroupIdSearchParameter();
$seedAdGroupIdSearchParameter->setAdGroupId($adGroupId);
$searchParameters[] = $seedAdGroupIdSearchParameter;
}
$selector->setSearchParameters($searchParameters);
$selector->setPaging(new Paging(0, self::PAGE_LIMIT));

// Get keyword ideas.
$page = $targetingIdeaService->get($selector);

// Print out some information for each targeting idea.
$entries = $page->getEntries();
if ($entries !== null) {
foreach ($entries as $targetingIdea) {
$data = MapEntries::toAssociativeArray($targetingIdea->getData());
$keyword = $data[AttributeType::KEYWORD_TEXT]->getValue();
$searchVolume = ($data[AttributeType::SEARCH_VOLUME]->getValue() !== null)
? $data[AttributeType::SEARCH_VOLUME]->getValue() : 0;
$averageCpc = $data[AttributeType::AVERAGE_CPC]->getValue();
$competition = $data[AttributeType::COMPETITION]->getValue();
$categoryIds = 
($data[AttributeType::CATEGORY_PRODUCTS_AND_SERVICES]->getValue() === null)
? $categoryIds = ''
: implode(
', ',
$data[AttributeType::CATEGORY_PRODUCTS_AND_SERVICES]->getValue()
);
$aFinalArray = [];
$aSubArray = [];
$arr[] = array('keyword' => $keyword, 'cpc' => $averageCpc, 'competition' 
=> $competition, 'search_volumenew' => $searchVolume);
}
$aFinalArray = $arr;
echo ""; print_r($aFinalArray); die;
}

if (empty($entries)) {
print "No related keywords were found.\n";
}
}

public static function main()
{
*$adsConfigPath = __DIR__ . '/../adsapi_php.ini';   // My config file*
$oAuth2Credential = (new 
OAuth2TokenBuilder())->fromFile($adsConfigPath)->build();
$session = (new 
AdWordsSessionBuilder())->fromFile($adsConfigPath)->withOAuth2Credential($oAuth2Credential)->build();
$aDataInfo = self::runExample(new AdWordsServices(), $session, 
self::AD_GROUP_ID);
}
}

GetKeywordIdeas::main();
On Tuesday, 24 November 2020 at 08:00:07 UTC+5:30 adsapiforumadvisor wrote:

> Hi Neetu,
>
> So our team can investigate this further, could you provide your customer 
> ID and the complete request 
> 
>  
> and response 
> 
>  
> logs that were generated?
>
> In addition, could you confirm whether the same input generated results in 
> the Keyword Planner ? 
> If yes, could you also send a screenshot?
>
> You may send the requested details using the *Reply privately to author* 
> option.
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q27v7E8: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

Re: Google Adword API - Not getting data for some of the Keywords.

2020-11-23 Thread Google Ads API Forum Advisor Prod
Hi Neetu,

So our team can investigate this further, could you provide your customer ID 
and the complete request and response logs that were generated?

In addition, could you confirm whether the same input generated results in the 
Keyword Planner? If yes, could you also send a screenshot?

You may send the requested details using the Reply privately to author option.

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q27v7E8: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 
"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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/AD7jV0QKA49N00kCT93VIvS6-KXu8RJmK61w%40sfdc.net.


Re: Google Adword API - Not getting data for some of the Keywords.

2020-11-23 Thread Neetu Varshney
Hello Matt,
Thanks for the reply

As I using the code 
from 
https://github.com/googleads/googleads-php-lib/blob/6c3e8c7c7d5023535a836a7a65e6813fcca6d9ae/examples/AdWords/v201809/Optimization/GetKeywordIdeas.php
 
here, and I get result for "bakery", "pastries", "birthday cake", but as I 
changed these keywords by "Biden, Covid 19" etc, then got no values of 
"Search Volume", CPC, etc.

I am using the same code from the above URL, only changed the 
authentication cofiguration. 
Please help me.

On Friday, 20 November 2020 at 23:29:24 UTC+5:30 adsapiforumadvisor wrote:

> Hi Neetu,
>
> I ran the code sample against my account, using the phrases 'Covid 19', 
> 'Biden' and 'Trump', and I did get results by changing line 179:
>
> relatedToQuerySearchParameter.setQueries(new String[] {"bakery", 
> "pastries", "birthday cake"});
>
> Are you providing an ad group ID as an argument for the keyword planner? 
>
> Thanks,
> Matt
> Google Ads API Team
>
> [image: Google Logo] 
> Matt 
> Google Ads API Team 
>   
>
> [image: Google Logo] 
> Matt 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q27v7E8: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 
"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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4428df9a-a670-4616-b72d-7b59d1d16471n%40googlegroups.com.


Re: Google Adword API - Not getting data for some of the Keywords.

2020-11-20 Thread Google Ads API Forum Advisor Prod
Hi Neetu,

I ran the code sample against my account, using the phrases 'Covid 19', 'Biden' 
and 'Trump', and I did get results by changing line 179:

relatedToQuerySearchParameter.setQueries(new String[] {"bakery", "pastries", 
"birthday cake"});

Are you providing an ad group ID as an argument for the keyword planner?

Thanks,
Matt
Google Ads API Team

Matt
Google Ads API Team



Matt
Google Ads API Team
ref:_00D1U1174p._5004Q27v7E8: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 
"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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/IkqAx0QK3WM300r8KP8227SpWr5FHLHTF0Og%40sfdc.net.


Re: Google Adword API - Not getting data for some of the Keywords.

2020-11-19 Thread Neetu Varshney
Hello Ernie
Thanks for the reply,

As I am already following the same guideline (provided by you). I am 
getting "0" Search Volume for these keywords "Covid 19, Trump, Biden". 
Please suggest me so that I can get the right data.

On Friday, 20 November 2020 at 08:23:16 UTC+5:30 adsapiforumadvisor wrote:

> Hi Neetu,
>
> Thanks for posting your concern.
>
> Please ensure to specify the list of seed keywords related to the 
> results that you expecting to show (e.g. Covid 19, Trump, Biden). You may 
> refer to this guide 
> 
>  
> to know read more details on how to prepare request for retrieving keywords 
> ideas.
>
> Regards,
> [image: Google Logo] 
> Ernie John Blanca Tacata 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q27v7E8: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 
"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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/fbba79dd-fa71-431b-a096-c50df7b85c13n%40googlegroups.com.


RE: Google Adword API - Not getting data for some of the Keywords.

2020-11-19 Thread Google Ads API Forum Advisor Prod
Hi Neetu,

Thanks for posting your concern.

Please ensure to specify the list of seed keywords related to the results that 
you expecting to show (e.g. Covid 19, Trump, Biden). You may refer to this 
guide to know read more details on how to prepare request for retrieving 
keywords ideas.

Regards,

Ernie John Blanca Tacata
Google Ads API Team
ref:_00D1U1174p._5004Q27v7E8: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 
"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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/XkQPx0QK2QNV00Jz0N_jg-R5KRH2Z_wIc9PQ%40sfdc.net.


Google Adword API - Not getting data for some of the Keywords.

2020-11-19 Thread Neetu Varshney
Hello Team,

As I am using google Adword APIs from here 
https://developers.google.com/adwords/api/docs/samples/php/optimization#get-keywords-related-to-a-seed-keyword,

It is giving data for many of the "keywords like Paytm, apple, iPhone, 
amazon" etc.
But It is not giving data for some of the keywords like - "Covid 19, Trump, 
Biden, etc"

So I am not finding anything, please suggest to me how can I get data for 
all the keywords.

Thanks,
Neetu Varshney

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ffe2ba8b-fb61-49c0-9ee1-85b58165e6c7n%40googlegroups.com.