Python get_keyword_ideas.py INVALID_SEARCH_PARAMETERS

2019-01-24 Thread Stephen Barrett
Hi. I'm getting this error when using the sample code: *GoogleAdsServerFault*: [TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ selector.searchParameters.searchParameters[0]; trigger:'LanguageSearchParameter', TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ selector.searchParameters.searchParam

Re: Python get_keyword_ideas.py INVALID_SEARCH_PARAMETERS

2019-01-24 Thread Stephen Barrett
Nevermind. I figured it out! I just needed to add my Customer ID to the .yaml file. On Thursday, January 24, 2019 at 3:22:11 PM UTC-7, Stephen Barrett wrote: > > Hi. I'm getting this error when using the sample code: > > *GoogleAdsServerFault*: [TargetingIdeaError.INVALID_

Get_keyword_ideas issue getting the keyword and search volume

2019-01-24 Thread Stephen Barrett
Hi! I'm running on Python and I am having a little bit of trouble with the display results portion of the script. Instead of printing the results, I wanted to save the keyword and search volume into a list to use elsewhere. I am trying to just store the variables and I'm getting this error: s

Fatal error: Class 'Google\AdsApi\Common\OAuth2TokenBuilder' not found.

2018-05-03 Thread Stephen Barrett
I'm getting this error when trying to view an example on a webpage: Fatal error: Class 'Google\AdsApi\Common\OAuth2TokenBuilder' not found. I installed the lib via git clone, I added the lib to a directory called adwords, and I added the adsapi_php.ini file to the root directory of my applicati

Uncaught exception 'InvalidArgumentException' with message 'Config file not found as specified: 'adsapi_php.ini'.

2018-05-04 Thread Stephen Barrett
I just put all of these files onto a website (Wordpress site) and I can't determine where it needs me to place the adspai_php.ini file. Do I put it in the directory where I have the application, or in the theme file or in the root of the entire site? I'm a bit confused. -- -- =~=~=~=~=~=~=~=~

Re: Uncaught exception 'InvalidArgumentException' with message 'Config file not found as specified: 'adsapi_php.ini'.

2018-05-04 Thread Stephen Barrett
I figured it out. I just had to put a path inside fromfile() On Friday, May 4, 2018 at 10:38:40 AM UTC-6, Stephen Barrett wrote: > > I just put all of these files onto a website (Wordpress site) and I can't > determine where it needs me to place the adspai_php.ini file. Do I pu

InvalidArgumentExceptions in my adsapi_php.ini file?

2018-05-04 Thread Stephen Barrett
I'm getting this error but I checked my config file and I have clientId, clientSecret and refreshToken set. *Fatal error*: Uncaught exception 'InvalidArgumentException' with message 'All of 'clientId', 'clientSecret', and 'refreshToken' must be set when using installed/web application flow.'

Re: Fatal error: Class 'Google\AdsApi\Common\OAuth2TokenBuilder' not found.

2018-05-04 Thread Stephen Barrett
Thanks Luis. I'll check there. On Thursday, May 3, 2018 at 9:11:13 PM UTC-6, Luis Xander Talag (AdWords API Team) wrote: > > Hi Stephen, > > It seems your concern is more related to the PHP client libraries rather > than the AdWords API. I would suggest to post your issue here >

Correct OAuth2 redirect URI ?

2018-05-07 Thread Stephen Barrett
I'm getting stuck on setting up my OAuth2 Credentials. I have all the necessary information and have run GetRefreshToken.php but it keeps on saying that I don't have the correct Redirect URI. I'm on a mac and I haven't moved the Vendor directory anywhere else. What needs to be my redirect URI?

Unauthorized_client error

2018-05-07 Thread Stephen Barrett
I am getting this erro: Uncaught GuzzleHttp\Exception\ClientException: Client error: `POST https://www.googleapis.com/oauth2/v4/token` resulted in a `401 Unauthorized` response. I have checked clientID, ClientSecret, and RefreshToken and they are all correct. I'm wondering if this has to d

Keyword Performance Report help

2018-05-09 Thread Stephen Barrett
I'm trying to pull Keyword Performance Report and I'm having trouble figuring out I want to use the AWQL method: // Create report query to get the data for last 7 days. $reportQuery = 'SELECT CampaignId, AdGroupId, Id, Criteria, CriteriaType, ' . 'Impressions, Clicks, Cost FROM KEYWORD_PER

Re: Keyword Performance Report help

2018-05-10 Thread Stephen Barrett
So by changing the report type, would I have to also change the use cases too? On Wednesday, May 9, 2018 at 10:08:27 PM UTC-6, Dannison Yao (AdWords API Team) wrote: > > Hi Stephen, > > Here is a sample PHP guide >

Re: Keyword Performance Report help

2018-05-10 Thread Stephen Barrett
e file it's mentioning doesn't have any errors. So I'm going to think its the sample file. I checked through the code and it doesn't look like anything is wrong with it either. any help? On Thursday, May 10, 2018 at 9:10:04 AM UTC-6, Stephen Barrett wrote: > > So by changi

Re: Keyword Performance Report help

2018-05-10 Thread Stephen Barrett
Another update. I've been working through this. And I had to update my PHP version to 7.0.29 in order to remove that error above. Now I'm not seeing any errors or anything. On Thursday, May 10, 2018 at 9:45:57 AM UTC-6, Stephen Barrett wrote: > > And update: > > I tested

Error with Criteria Performance Report

2018-05-11 Thread Stephen Barrett
I'm receiving this error when I am running the example CRITERIA_PERFORMANCE_REPORT with AWQL. I was running it on a test account and thought it was because there is very minimal data in it, so I switched to an production account that I have and all my campaigns from another function pull in, bu

Re: Error with Criteria Performance Report

2018-05-11 Thread Stephen Barrett
that post has nothing to do with this Parse error. On Friday, May 11, 2018 at 2:07:28 PM UTC-6, Dhanya Sundararaju (AdWords API Team) wrote: > > Hi Stephen, > > Could you please check out this post > from the > library's GitHub page and

Using dynamic customerId

2018-05-11 Thread Stephen Barrett
I've successfully been able to get client's customer ID number during authentication. What is the best procedure on how to use that Client CustomerId instead of the customerId in the ini file? -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdev

Re: Using dynamic customerId

2018-05-14 Thread Stephen Barrett
ou're using one of the > other libraries. > > On Saturday, 12 May 2018 00:04:34 UTC+1, Stephen Barrett wrote: >> >> I've successfully been able to get client's customer ID number during >> authentication. What is the best procedure on how to use that Clie

Re: Error with Criteria Performance Report

2018-05-14 Thread Stephen Barrett
I haven't changed any code in the symfony directory. So I'm assuming it's a php version error. I'm running php 7.0.29. This is the highest I can go for my website. It was suggested in another thread I am on to download Vendor again via Composer but with the local machine the same php version of

Re: Error with Criteria Performance Report

2018-05-15 Thread Stephen Barrett
The changelog.md within the googleads-php-lib directory states that it's version 34.0.0. I was able to successfully make the call in my local setup, but not my webhost environment. On Tuesday, May 15, 2018 at 9:30:33 AM UTC-6, Sreelakshmi Sasidharan (AdWords API Team) wrote: > > Hi Stephen, >

Re: Error with Criteria Performance Report

2018-05-15 Thread Stephen Barrett
Is there a way for me to download a lesser version? I have changed my localhost to match my webhost's php version 7.0.30 and when I try and download the library through composer it no longer meets the requirements because the library requires php 7.1 or higher On Tuesday, May 15, 2018 at 2:02:1

AWQL + WHERE + greater_than Percentage

2018-05-18 Thread Stephen Barrett
Hi! I'm trying to pull a Keywords Performance Report to only pull keywords with a CTR that is greater than 3%. ->from(ReportDefinitionReportType::KEYWORDS_PERFORMANCE_REPORT) ->where('Status')->in(['ENABLED']) ->where('Ctr')->greater_than(['3.00%']) ->duringDateRange(ReportDefinitionDateRangeTy

Pulled same report twice but getting different total values (one with a date segment, one without)

2018-05-18 Thread Stephen Barrett
Can someone help and explain AdWord's way of calculating their own metrics? The report I'm using is Keywords_Performance_Report I have pulled the same report twice with and without the segment Date for the Last 30 Days (see screenshot). Clicks, Total Conversion Value and Cost all matched up per

Re: AWQL + WHERE + greater_than Percentage

2018-05-21 Thread Stephen Barrett
So it would be something like: ->where('Status')->in(['ENABLED']) AND ('Ctr')->greater_than('3.00') On Monday, May 21, 2018 at 12:48:29 AM UTC-6, Peter Oliquino (AdWords API Team) wrote: > > Hi Stephen, > > For your query, you can just use AND to include both filters in one WHERE > clause only.

Keyword Performance Report with EXACT MATCH and PHRASE MATCH punctuation

2018-05-23 Thread Stephen Barrett
Is there a way for me to output my keywords as they appear in my Adwords Account with EXACT MATCH and PHRASE MATCH? I have 2 keywords that are exact, but one is an exact match and the other is phrase match but the API just outputs these keywords without square brackets or quotations. example:

Re: Keyword Performance Report with EXACT MATCH and PHRASE MATCH punctuation

2018-05-23 Thread Stephen Barrett
Never mind! I found the solution. KeywordMatchType On Wednesday, May 23, 2018 at 2:01:05 PM UTC-6, Stephen Barrett wrote: > > Is there a way for me to output my keywords as they appear in my Adwords > Account with EXACT MATCH and PHRASE MATCH? I have 2 keywords that are > exact, b

GetKeywordIdeas + Exact Phrase

2018-07-03 Thread Stephen Barrett
I'm looking at the GetKeywordIdeas example found in the example files and I was wondering how I would get the exact phrase of the keyword I am inputting. In Adwords Keyword Planner, you can see the exact keyword you are planning for at the very top regardless on the competition or avg monthly.

Re: GetKeywordIdeas + Exact Phrase

2018-07-05 Thread Stephen Barrett
Thanks Luis. I'm looking for a way to use the exact keyword phrase. For example, if I wanted to use the keyword "Women's Shoes", it will return to me the search volume for "women's shoes" and not women's running shoes". Is there another way to do this? On Wednesday, July 4, 2018 at 2:02:42 AM

Re: GetKeywordIdeas + Exact Phrase

2018-07-05 Thread Stephen Barrett
Or is there a way for me to bring in search volume into EstimatedKeywordTraffic On Wednesday, July 4, 2018 at 2:02:42 AM UTC-6, Luis Xander Talag (AdWords API Team) wrote: > > Hi Stephen, > > In the GetKeywordIdeas example, the RelatedToQuerySearchParameter >

Not getting same results when using GetKeywordIdeas compared to Keyword Planner

2018-07-05 Thread Stephen Barrett
There's a difference in search volume when using GetKeywordsIdeas compared to Adwords' Keyword Planner. Why am I not getting the same number in results? Do I need to adjust anything in my attributes? My Network setting is only set to TargetGoogleSearch only. Thanks in advance -- -- =~=~=~=~

Re: GetKeywordIdeas + Exact Phrase

2018-07-06 Thread Stephen Barrett
I tried using STATS, but it clumped my keywords into one string and gave me a search volume for that string instead of giving me multiple search volumes depending on the keyword. Does that make sense? On Friday, July 6, 2018 at 12:38:30 AM UTC-6, Peter Oliquino (AdWords API Team) wrote: > > Hi

Re: GetKeywordIdeas + Exact Phrase

2018-07-06 Thread Stephen Barrett
So I tested STATS again and it seems that it's only returning the first keyword's search volume instead of all of the ones I have in the array. Is there a way for me to produce search queries for all? On Friday, July 6, 2018 at 8:38:39 AM UTC-6, Stephen Barrett wrote: > > I t

Keyword Ideas and relatedToQuerySearchParameter

2018-07-06 Thread Stephen Barrett
What is the array associated in this parameter. $relatedToQuerySearchParameter->setQueries( ['shoes', 'flip flops'] ); $searchParameters[] = $relatedToQuerySearchParameter; I thought it was a simple json array but I noticed it has single quotations. Does that even matter? I tr

GetKeywordIdeas - Keyword limit?

2018-07-11 Thread Stephen Barrett
Is there a limit to the amount of keywords you can place within the relatedToQuerySearchParameter string array? -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You receive

Migration Question

2018-08-09 Thread Stephen Barrett
So I'm migrating/updating from 201708 to 201806. What files get replaced? What do I need to do exactly in order to migrate/update correctly? I don't want to break anything. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/

Re: Migration Question

2018-08-09 Thread Stephen Barrett
Luis > AdWords API Team > > On Friday, August 10, 2018 at 5:49:45 AM UTC+8, Stephen Barrett wrote: >> >> So I'm migrating/updating from 201708 to 201806. What files get replaced? >> What do I need to do exactly in order to migrate/update correctly? I don't >

Passing a variable int KeywordIdeas

2018-08-09 Thread Stephen Barrett
I'm working with the KeywordIdeas sample and I was wondering if there was a way to pass a variable without it be $_POST? I'm using Ajax and I was able to pass the post variable through the form's serialize function. My ajax script is changing the $_POST into another variable. So I was wondering

Re: Error with Criteria Performance Report

2018-09-28 Thread Stephen Barrett
Yes. I was able to figure it out. From what I remember you have to make sure both environments are the same version of PHP. So if your final environment is 7.0, you have to downgrade your php version on your localhost to 7.0. I used Homebrew to accomplish that. On Friday, September 28, 2018 at

Upgrading to a newer version

2022-02-24 Thread Stephen Barrett
When upgrading to a newer version, do I need to overwrite the entire client library or just sections of it? What are the best practices? Thanks! -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~

Re: Upgrading to a newer version

2022-02-25 Thread Stephen Barrett
Thank you. I'm migrating from version 8 to 9 and then 9 to 10. I'm only using the library for keywordideas and I just wanted to know if I had to overwrite my library multiple times to get to the latest version. On Friday, February 25, 2022 at 2:17:07 PM UTC-7 adsapi wrote: > Hi Stephen, > > Tha

Re: Upgrading to a newer version

2022-03-01 Thread Stephen Barrett
Google\Ads\GoogleAds\Lib\V8\GoogleAdsException; use Google\ApiCore\ApiException; Stephen Barrett / Sr. Web Lead step...@veloxmedia.com / 208-830-6398 VELOX Media 866-324-8899 / 208-338-1400 518 S 9th St Boise ID 83702 www.veloxmedia.com On Mar 1, 2022, 2:03 PM -0700, Google Ads API Forum Advisor

Re: Upgrading to a newer version

2022-03-02 Thread Stephen Barrett
So I would need to update these files in my files to version 10, correct? Thanks! Stephen Barrett / Sr. Web Lead step...@veloxmedia.com / 208-830-6398 VELOX Media 866-324-8899 / 208-338-1400 518 S 9th St Boise ID 83702 www.veloxmedia.com On Mar 2, 2022, 10:12 AM -0700, Google Ads API Forum

GenerateKeywordIdeas parameter constants issue?

2021-05-03 Thread Stephen Barrett
Hello, Currently working on GenerateKeywordIdeas and using the example. I have added the customerId, LocationId, languageId and keywordTexts within each private constant, but I am getting the following error. I successfully used the example on the command line, so what am I doing wrong, since t

Re: GenerateKeywordIdeas parameter constants issue?

2021-05-04 Thread Stephen Barrett
I'm not able to reply privately to the author. It says I do not have permission. The complete request is the GenerateKeywordIdeas.php example, but I changed the private const to the follow: CUSTOMER_ID (our customer id with not dashes) LOCATION_ID_1 2840 LANGUAGE_ID 1000 KEYWORD_TEXT_1 cake (j

Re: GenerateKeywordIdeas parameter constants issue?

2021-05-04 Thread Stephen Barrett
what's going on. On Tuesday, May 4, 2021 at 8:35:39 AM UTC-6 Stephen Barrett wrote: > I'm not able to reply privately to the author. It says I do not have > permission. > > The complete request is the GenerateKeywordIdeas.php example, but I > changed the private const to

Re: GenerateKeywordIdeas parameter constants issue?

2021-05-04 Thread Stephen Barrett
thank you. I will do just that. On Tuesday, May 4, 2021 at 12:29:05 PM UTC-6 adsapiforumadvisor wrote: > Hi Stephen, > > Thanks for providing us with more information on your issue. I would > recommend reaching out to the PHP client library owners regarding your > logging issue, as it pertains