Re: How To Automate Refresh Tokens using REST API

2022-07-27 Thread Mike M
Thank you so much, guys, on the assistance here. This explains a lot. I'll work with the GCP Support process more out of curiosity than anything else. I mean, my code is now revised so that when I get an invalid_grant message in the JSON during the Access Token generation, I'll get an email aler

Re: How To Automate Refresh Tokens using REST API

2022-07-27 Thread Mike M
Jinky, you may want to update the online docs to indicate a few things. First, I don't see Publishing Status anywhere -- not on editing the oAuth Client (Web Application), or on the oAuth Consent Screen (view mode or when I click Edit). Second, on the page that the docs have about Refresh Token

Re: How To Automate Refresh Tokens using REST API

2022-07-27 Thread Mike M
You had stated: "The refresh token generated in the Google Oauth Playground lasts only for 1 hour then it expires." This appears incorrect. We generated one with our Client ID and Client Secret and it has lasted for several hours now. We also read your doc... https://developers.google.com/iden

Re: Previously working code now has an Invalid Grant error?

2022-07-26 Thread Mike M
I took over this project from another developer (now no longer available to us) and recoded it, switching from the SOAP API to the REST API on Google Ads API. I found his config PHP and got the IDs I needed from there and continued using them. So, about 2 months ago I was using the Client ID, Clien

Re: How To Automate Refresh Tokens using REST API

2022-07-26 Thread Mike M
plied to us: https://developers.google.com/identity/protocols/oauth2#expiration On Tuesday, July 26, 2022 at 5:42:18 PM UTC-4 Mike M wrote: > On the tail end of this request, to fully automate this Refresh Token > renewal, do you think that I may need to generate a Service Account in

Re: How To Automate Refresh Tokens using REST API

2022-07-26 Thread Mike M
using the Desktop oAuth Client ID (which I have since switched to the Web Application oAuth Client ID). On Tuesday, July 26, 2022 at 5:29:11 PM UTC-4 Mike M wrote: > I've been using 2 API calls to batch upload google offline click > conversions. One generates the Access Token. The

How To Automate Refresh Tokens using REST API

2022-07-26 Thread Mike M
I've been using 2 API calls to batch upload google offline click conversions. One generates the Access Token. The other is the API call to upload the offline click conversions. All was well for a few weeks until suddenly we started getting invalid_grant messages when trying to generate the Acce

Re: Previously working code now has an Invalid Grant error?

2022-07-26 Thread Mike M
Sam, For some strange reason, I too also received this over the REST API for generating an Access Token from my Refresh Token. This caused the invalid_grant error for me. I'm not certain why my Refresh Token just stopped working. When it did, I followed this video with Google oAuth Playground

Why Am I Getting EVENT_NOT_FOUND and CLICK_CONVERSION_ALREADY_EXISTS?

2022-07-10 Thread Mike M
I've been storing gclids for legitimate traffic in my database when customers come to my website. Then, I use the v11 REST API for Google Offline Conversions to post the whole sales cycle from download of our product, purchase, and upsell. Occasionally when sending traffic, I keep getting EVENT

Feature Suggestion -- Passing Metadata Into ClickConversion of uploadClickConversion

2022-07-07 Thread Mike M
I have these database table IDs for my conversions to upload. It's a positive integer. When I upload a clickConversion via the REST API, it tells me the successes in the 'results' section, and the fails in the 'partialFailureError->details[0]->errors' section, but now I have no way to know whic

Re: iRe: The click associated with the given identifier or iOS URL parameter occurred less than 6 hours ago, please retry after 6 hours have passed

2022-07-06 Thread Mike M
Alex, I know that I'm responding to this thread very late. (I don't work for Google, btw.) We encountered the same delay issue in our campaigns. To rectify the problem, we added a tracking system called Matomo (which has a free community edition adn was formerly called Piwik) so that we could c

Re: Get conversion action for uploading offline clic conversion

2022-07-06 Thread Mike M
I had this same problem. I don't know if this will resolve you, but basically I needed to understand that a Conversion Action is not the physical string label of it. For instance, I had a Conversion Action with a label "Upsell 1". I couldn't pass "Upsell 1" as the conversion action at least in

Re: User doesn't have permission to access customer. Note: If you're accessing a client customer, the manager's customer id must be set in the 'login-customer-id' header. See https://developers.google

2022-07-06 Thread Mike M
Hmmm. As far as I understand it, the Customer ID used in the URL should be the Linked Customer ID. Basically, that's the customer ID where you wish to add, modify, or remove data. And you have to be granted permission by the other Google Adwords account to be able to do that linkage. The Login

Storing Dollars and Cents in conversionValue in uploadClickConversions

2022-07-02 Thread Mike M
I'm using the REST API v11 for uploadClickConversions. In building a clickConversion object, the documentation says that the conversionValue must be a numeric value. Sometimes when we do this as programmers, we have to worry about monetary values getting munged when stored in a floating point v

Using Python AdWords API Library, AWQL download has spaces in header names

2016-05-16 Thread Mike M
Using Python AdWords API Library, I can connect and download a report in CSV format. However - inserting that data into my database is failing due to spaces in the column names in the header row. Is there a way via the Adwords library to specifically name the columns, or force it to have no s

Python Adwords Library - best way to remove the header and total row

2015-10-13 Thread Mike M
I have successfully made a reporting call from the AdWords API using AWQL example. In the response, I get a report title like this: CRITERIA_PERFORMANCE_REPORT (Oct 6, 2015-Oct 12, 2015) and I get a total line like this: Total, --, --, --, --, --, --, --, --, --, --, --, --,, etc. Is there