How to refresh the client refresh_token?

2021-12-06 Thread Stiofán Ó Riain
Hi all I am struggling with the Google Ads API documentation, so I would appreciate any help you can give me on this. I have created a Google Ads API test application which accesses User Data, uses the Google Ads API scope, and has an OAuth Client ID and authorised redirect URL. The applicati

Re: How to refresh the client refresh_token?

2021-12-06 Thread Stiofán Ó Riain
Hi Lakshmi Thanks for your reply. Yes, I have seen that documentation. I don't have any problems creating the initial token, but after it has expired how do I created a new one? The flow to create the initial token is currently as follows: * We create an oauth2 redirect URL for the user. * The

Re: How to refresh the client refresh_token?

2021-12-08 Thread Stiofán Ó Riain
Hi Aryeh Thanks for your message. While my app is in test mode, can you confirm how exactly I refresh the refresh token without the user needing to manually re-link his Google Ads account to my app? Or is that the only way - I delete the refresh token and the user manually goes through the ste

Refresh token is only giving me access to accounts I own

2021-12-09 Thread Stiofán Ó Riain
Hi all I must be misunderstanding something simple here. The documentation unfortunately isn't great so it's hard to find an answer to this. I would appreciate your advice. I have a website which uses a test Google Ads app I have developed. Users create an account at my website, and then use t

resource_count_limit_exceeded_error even when the resource count limit is NOT exceeded

2022-01-09 Thread Stiofán Ó Riain
Hi all Thanks for looking at my question. Let's say my campaign has 500 IPs blocked in the "IP exclusions" list. I want to block another two IPs. So I unblock two IPs, wait five minutes (during this five minute wait I can see they're unblocked in the Google Ads UI), and then I try to block the

Re: resource_count_limit_exceeded_error even when the resource count limit is NOT exceeded

2022-01-09 Thread Stiofán Ó Riain
Note I am using the PHP version of the Google Ads library v8. On Sunday, January 9, 2022 at 8:20:55 PM UTC+8 Stiofán Ó Riain wrote: > Hi all > > Thanks for looking at my question. > > Let's say my campaign has 500 IPs blocked in the "IP exclusions" list. >

Getting "DEVELOPER_TOKEN_NOT_APPROVED" after moving code to a different server

2022-02-08 Thread Stiofán Ó Riain
Hi all I am using the same code, same developer token, same everything. If I run the code on localhost it works fine. If I run it on domain.com I get the following error: *Fatal error*: Uncaught Google\ApiCore\ApiException: { "message": "The caller does not have permission", "code": 7, "status

"Request contains an invalid argument" - how to see what argument is invalid?

2022-02-25 Thread Stiofán Ó Riain
Hi there Thanks for reading my question. I am using mutateCampaignCriteria to try to remove some IPs from a campaign's IP Exclusions List. This code in general works fine (it works for other campaigns), but it is failing for one particular campaign and I don't know why. This is the error: {

Which API method can fetch the resource IDs for a campaign?

2022-02-28 Thread Stiofán Ó Riain
Hi there Currently I am using CampaignCriterionOperation and mutateCampaignCriteria to add IPs to campaigns' IP Exclusion List. After adding an IP to a campaign's IP Exclusion List, I receive the resource ID as a response and I save it in my database. My concern is if my database crashes and I

oauth2callback is only selecting manager and child accounts, but not selecting standalone accounts

2022-03-22 Thread Stiofán Ó Riain
Hi all Thank you for your help on this. My understanding is there are four types of Google Ads accounts: Standalone accounts (not associated with a manager account) Manager accounts Client accounts (owned by a manager account) Test accounts When we run our oauth2callback code, it is only select