Unable to change keyword bids PHP v201710

2017-12-20 Thread Josh Averbeck
Hello, I am trying to do something extremely simple: change keyword bids. I think my code is correct but I'm probably wrong. I've searched the documentation for over four hours and can't find anything to help me. Unfortunately all other languages have examples of changing bids, the PHP example

Re: Keeping the access token valid during API calls

2017-05-25 Thread Josh Averbeck
Hi Shwetha, My above code works, I actually had an error on my end but it works. The guide you linked to does not detail how to get a new oauth2 token and generate a new session using the user's refresh token. The code that I posted above does do just that though. Thanks! On Monday, May

Page Limits

2017-05-25 Thread Josh Averbeck
Hello, With all the example files I'm seeing the error: *Fatal error*: Undefined class constant 'PAGE_LIMIT' which is being thrown by this line of code: $selector->setPaging(new Paging(0, self::PAGE_LIMIT)); Any help is appreciated. Using v201702 of the PHP library. -- --

Re: Keeping the access token valid during API calls

2017-05-21 Thread Josh Averbeck
Hi Danny, I'm running into the same problems with regenerating oauth2tokens using a refresh token. I tried your code but you have to remove scopes because that is only for installed application flow. It throws an error if you the scopes withScopes() method because of conflicts. Here's the

Re: AuthorizationError.USER_PERMISSION_DENIED

2017-05-17 Thread Josh Averbeck
Hi Minas, Did you ever find a solution to this? I'm having the same issue. On Monday, January 9, 2017 at 2:25:05 PM UTC-6, Minas Gratas wrote: > > To make successful API calls, the login used to create the client >> credentials must match the login with which you generate the OAuth tokens. >>