Reach for products other than YouTube

2022-07-25 Thread axtens
In the image there is a "Reach" value in the Google Ads Keyword Plan. Is there a way to calculate / generate this in C#? [image: Reach.png] -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=

How do I make Forecast Reach work?

2022-08-07 Thread axtens
I'm using the sample code at . I've connected to my GoogleAdsClient and have attempted to evaluate ListPlannableLocationsRequest request = new ListPlannableLocationsRequest(); ListPlannableLocation

Why do I get AuthenticationError.USER_ID_INVALID programmatically but not via OAuth2.0 Playground?

2014-03-18 Thread axtens
Context: Windows 7, IE10, JScript, Peloton, Msxml2.ServerXMLHTTP.6.0 When I execute the following in OAuth2.0 Playground it works perfectly POST /api/adwords/reportdownload/v201402 HTTP/1.1 Host: adwords.google.com Clientcustomerid: blah-blah Developertoken: blah_blah Conte

Re: Where am I going wrong with this SOAP request?

2014-03-24 Thread axtens
Michael Thank you!! I took that slab of XML, tweaked it to suit and ran it. Worked a treat. Most grateful. Kind regards, Bruce. > >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+

Re: confusion about historical versus forecast in ads

2023-09-06 Thread axtens
Thank you for the prompt response. You said, " unable to provide a definite timeline ". How about a ballpark guesstimate? Six months? 12? Kind regards, Bruce On Monday, 4 September 2023 at 10:43:58 pm UTC+8 Google Ads API Forum Advisor wrote: > Hi Bruce, > > > > Thanks for providing more con

Ad hoc report, TSV output, no headers

2012-04-24 Thread axtens
I'm just starting to climb the learning curve of ad hoc reports. Is there a way with outputting TSV to turn off the field headers so that I just get the data? Bruce. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.co

Ad hoc report oddity - simple request but no data returned

2012-05-10 Thread axtens
https://adwords.google.com/api/adwords/cm/v201109";> AccountDescriptiveNameAccountId 1_91_123_skinny ACCOUNT_PERFORMANCE_REPORT YESTERDAY TSV Amazingly, that reportDefinition, which looks legit to me, doesn't return anything other than a title, fieldnames and a totals line. There's nothing e

Need C# GetAccountHierarchy without all the codeExample wrappings

2015-11-16 Thread axtens
Please could someone direct me to a barebones demo of GetAccountHierarchy in C#. C# is not my soup du jour and I'm finding it hard to peel the core concepts out of the codeExample wrapper. TIA, Bruce/bugmagnet -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and

v201603 + C# + ClearScript + JScript = error handling issue

2016-05-16 Thread axtens
I've already asked this question up on StackOverflow, but I'll try to summarise and amplify given the 3 or so hours since posting. In my madness I've wrapped the AdWords API in a bit of C# that uses ClearScript to expose API types to JScript using code like this: JSengine.AddHostType("AdWor

How to handle an AdWords failure: request one report, receive a different report

2016-08-22 Thread axtens
(I've already posted this on StackOverflow) Context: Adwords, XML, REST We had the weirdest thing happen recently: We sent a report request (in a large batch of related requests) for an Account Performance Report and received an Ad Performance Report. Also the report request specified a single

What is CANNOT_UNLINK_ACCOUNT_WITHOUT_ACTIVE_USER and what does it mean?

2016-09-15 Thread axtens
System.Object[] MakeApiCall(System.String, System.Object[])} System.Reflection.MethodBase {System.Reflection.RuntimeMethodInfo} So why the "CANNOT_UNLINK_ACCOUNT_WITHOUT_ACTIVE_USER" axtens/bugmagnet -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and

Documentation question

2022-02-28 Thread axtens
In many places in the AdWords documentation, for example in in the blurb about Criterion.Type it says, "Specify xsi:type instead." What does "Specify xsi:type instead" mean? And where can I see an e

What is wrong with this selector for AdWords

2022-02-28 Thread axtens
The following selector was exported from a running C# application using JsonConvert.SerializeObject. As far I can see, there are no problems with it. However, I am consistently receiving: "AdWordsApiException: Exception of type 'Google.Api.Ads.AdWords.Lib.AdWordsApiException' was thrown. \r\n\r

Re: What is wrong with this selector for AdWords

2022-02-28 Thread axtens
9 pm UTC+8 axtens wrote: > The following selector was exported from a running C# application using > JsonConvert.SerializeObject. As far I can see, there are no problems with > it. However, I am consistently receiving: > "AdWordsApiE

Oddities in the new Ads API

2022-03-11 Thread axtens
I just issued a ` ListAccessibleCustomers` and got a list of supposedly accessible customers. However, when I then issued a query against one of them, I received a `User doesn't have permission to access customer.` error. The code, FWIW, is below. The auth flow appears to work, and I suppose be

Serializing GoogleAdsRow in C#

2022-04-13 Thread axtens
Having built up a list of GoogleAdsRow into ``` var result = new List(); ``` how can I now get a list of all the fields in each row so as to build up TSV report, with headings at the top and the columnar data below. -- Bruce -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also

Re: Serializing GoogleAdsRow in C#

2022-04-13 Thread axtens
t; With the FieldMask list, you can determine which fields you should include > in that report you want to make. > On Wednesday, April 13, 2022 at 9:23:17 AM UTC+2 axtens wrote: > >> Having built up a list of GoogleAdsRow into >> ``` >> var result = new List();

AdWords to Ads

2022-05-08 Thread axtens
In AdWords one might have code like this ``` TargetingIdeaSelector selector = new TargetingIdeaSelector { requestType = RequestType.IDEAS, ``` and RequestType could be either IDEAS or STATS. What is the GoogleAds equivalents for these when trying to report Targeting ideas? -- bruce -- --

Confused about Ads documentation

2022-05-09 Thread axtens
I've adapted the code at . I don't understand why at one point why the example says, ``` var response = keywordPlanIdeaService.GenerateKeywordIdeas(request); ``` and then about three li

Extraction proto fields from Ads results

2022-05-09 Thread axtens
The code below is what I'm currently using (confusion about Ideas vs Historical Metrics not withstanding) to generate a JSON representation of the captured data. My question is, is the use of the ` Google.Protobuf.Reflection.MessageDescriptor` and the use of Reflection actually going to work? I

How to capture/generate "Reach"

2022-05-09 Thread axtens
In the image there's a "Reach" column next to the location. How is this figure derived as is it possible to capture/generate it in code? [image: Screenshot 2022-05-09 171039.png] -- Bruce -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdevelope

More Google Ads confusion (in C#)

2022-05-10 Thread axtens
So according to the [KeywordPlanIdeaService](https://developers.google.com/google-ads/api/reference/rpc/v10/KeywordPlanIdeaService) documentation there's `GenerateKeywordIdeas` and `GenerateKeywordHistoricalMetrics'. On line 169 of

Change History -- programmatically

2017-10-10 Thread axtens
What the current status on Change History? I found a Java example for a "Get All Account Changes during the past 24 hours" at . Interestingly, no equivalent C# impl

How to enable AverageCpcMicros on GenerateHistoricalMetrics in V11's KeywordPlanService?

2022-07-20 Thread Bruce Axtens
my KeywordPlan to enable this value? For reference, my sources are publicly available on github <https://github.com/axtens/Plugin_GoogleAds_Metrics>, and a full trace log and the output JSON are attached. -- Bruce -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on ou

Re: How to enable AverageCpcMicros on GenerateHistoricalMetrics in V11's KeywordPlanService?

2022-07-21 Thread Bruce Axtens
> sources are publicly available on github > <https://github.com/axtens/Plugin_GoogleAds_Metrics>, and a full trace log > and the output JSON are attached.*" > > Moving forward to your concern, I can see that this is mainly about the > *GenerateHistoricalMetrics *metho

RE: How to enable AverageCpcMicros on GenerateHistoricalMetrics in V11's KeywordPlanService?

2022-07-21 Thread Bruce Axtens
h (GoogleAdsException e) { return (null, e); } } From: Google Ads API Forum Advisor Sent: Thursday, 21 July 2022 6:59 PM To: Bruce Axtens Cc: adwords-api@googlegroups.com Subject: Re: How to enable AverageCpcMicros on GenerateHistoricalMetrics in

RE: How to enable AverageCpcMicros on GenerateHistoricalMetrics in V11's KeywordPlanService?

2022-07-22 Thread Bruce Axtens
) { return (null, e); } } From: Google Ads API Forum Advisor Sent: Friday, 22 July 2022 1:17 PM To: Bruce Axtens Cc: Steve Poulson ; adwords-api@googlegroups.com Subject: RE: How to enable AverageCpcMicros on GenerateHistoricalMetrics in V11&#

Problem instantiating Services.V11.ReachPlanService

2022-08-31 Thread Bruce Axtens
In the following, client is a valid GoogleAdsClient: client.GetService(Services.V11.ReachPlanService); However, it is throwing: Method not found: 'Grpc.Core.ChannelCredentials Grpc.Auth.GoogleGrpcCredentials.ToChannelCredentials(Google.Apis.Auth.OAuth2.ITokenAccess)'. This is after a uni

ACTION_NOT_PERMITTED

2022-09-18 Thread Bruce Axtens
I expect this has been reported a multitude of times, it's just I don't quite get what this means, viz: { "errors": [ { "errorCode": { "authorizationError": "ACTION_NOT_PERMITTED" }, "message": "This request is not authorized to call ReachPlanningService. Developer Token not enabled.", "location

Accessing enums in Google.Ads.GoogleAds.V11

2022-10-26 Thread Bruce Axtens
I have code running the following snippet ``` PagedEnumerable searchPagedResponse = googleAdsService.Search(request); foreach (GoogleAdsRow googleAdsRow in searchPagedResponse) { ``` Currently I'm serializing the

Issue with CampaignToForecast

2023-07-25 Thread Bruce Axtens
I'm in the process of coding some C# to generate a CampaignToForecast as per the documentation at https://developers.google.com/google-ads/api/reference/rpc/v14/CampaignToForecast I've got to the part where I'm trying to create a list of ForecastAdGroups. The intellisense is not offering me a

C# access to Generate Forecast Metrics

2023-07-30 Thread Bruce Axtens
As can be seen in the current (2023-07-31) documentation , there's currently no C# demo code. I've been trying to work it out anyway and am getting very close. However, I've hit a snag. I've done the

Re: c# access to generate forecast metrics

2023-07-31 Thread Bruce Axtens
Okay that appeared to have fixed one problem. It was the email address used. Now I've got a different problem. The error "Request contains an invalid argument." is a tad ambiguous. A JSON serialization of the error object's Failure property includes '"KeywordPlanIdeaError": 3,"HasKeywordPlanIde

Ambiguous error. What is my INVALID_VALUE?

2023-07-31 Thread Bruce Axtens
Following on from my previous post, another problem. The error "Request contains an invalid argument." is a tad ambiguous. A JSON serialization of the error object's Failure property includes '"KeywordPlanIdeaError": 3,"HasKeywordPlanIdeaError": true,' which is also a little ambiguous. -Bruc

Re: ambiguous error. what is my invalid_value?

2023-07-31 Thread Bruce Axtens
> I suggest using the other thread for better tracking and to avoid confusion. Fair call. I just wasn't sure if adding a second issue in the first would be noticed. Thanks, On Monday, July 31, 2023 at 11:14:39 PM UTC+8 Google Ads API Forum Advisor wrote: > Hi Bruce, > > Thank you for reac

Re: c# access to generate forecast metrics

2023-07-31 Thread Bruce Axtens
All fixed. Works a treat now. Thank you! -Bruce On Monday, July 31, 2023 at 11:13:33 PM UTC+8 Google Ads API Forum Advisor wrote: > Hi Bruce, > > Thank you for returning to our team. > > With regards to your new issue, I tried your request on my end and I also > got the same error. That being

unique users metrics

2023-08-02 Thread Bruce Axtens
A couple of years ago one Anastasiya Erko asked a question regarding the number of users targeted by a campaign as a metric (See https://groups.google.com/g/adwords-api/c/jbNGLCOEMBM) Has anything changed? Can one get approx numbers of people "reached" at the campaign level as a metric? Current

Re: unique users metrics

2023-08-03 Thread Bruce Axtens
I'm trying to establish the audience size for campaigns or maybe census_audience_size. I keep going round and round in circles ending up at youtube-related requests which are totally irrelevant. Must I really spend time with ReachPlanService, GenerateReachForecast, PlannableLocation, ProductMe

Confusion about Historical versus Forecast in Ads

2023-08-29 Thread Bruce Axtens
Using the following settings "CcId": "6239854509", "Keywords": "attractions", "Language": "English", "Location": "Western Australia,Australia", "Network": "GoogleSearch", "From": "01/07/2023", "To": "31/07/2023" we get the following out of a

Re: confusion about historical versus forecast in ads

2023-08-31 Thread Bruce Axtens
Hello "Team" The difficulty of getting comparable values from the online Forecast tool is that the bidding strategy daily budget seems to be tied to the budget of the CCID's account. We're trying to find out what the impressions would be if the budget was effectively unlimited. Is there a way t

Re: confusion about historical versus forecast in ads

2023-09-04 Thread Bruce Axtens
Thanks for getting back to me. As far as I can see, there's no means to change the $120 value. I'm very willing to be proved wrong. -Bruce On Monday, September 4, 2023 at 5:39:52 PM UTC+8 Google Ads API Forum Advisor wrote: > Hello Bruce, > > Thank you for getting back to us. > > Can you plea

Forecasts

2023-10-03 Thread Bruce Axtens
Can the API do an unlimited "campaign budget" and an unlimited "daily budget" when configuring a forecast request? If unlimited is not possible, then what is the maximum "campaign budget" possible, and the maximum "daily budget" possible? -Bruce -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Re: forecasts

2023-10-10 Thread Bruce Axtens
Thanks Anash The thing is, I'm bouncing between product support and API because no one seems to have an answer to what I'm asking (or I'm not comprehending the answer.) It all started with https://groups.google.com/g/adwords-api/c/SUmBsHLlTbM/m/iyMijs7CAwAJ where I started a correspondence ab

Forecast again (am I too impatient?)

2023-10-13 Thread Bruce Axtens
I'm bouncing between product support and API because no one seems to have an answer to what I'm asking (or I'm not comprehending the answer.) It all started with https://groups.google.com/g/adwords-api/c/SUmBsHLlTbM/m/iyMijs7CAwAJ where I started a correspondence about Forecast. Eventually API

Generate Historical Metrics without a Keyword plan for a particular location / language

2022-05-18 Thread Bruce Axtens
As one Adil Khaji posted recently in another forum: We can use the method GenerateKeywordHistoricalMetrics to generate search volume information, even when the keyword plan is not created. Refer to the below location for the method details https://developers.google.com/google-ads/api/rest/refere

Stymied on creating a keyword plan

2022-05-23 Thread Bruce Axtens
1. I have correctly authorised myself to the controlling account 2. I can demonstrate this by calling ListAccessibleCustomers and have it return a suitably long list of clients 3. I have copied and slightly adapted the CreateKeywordPlan code from https://developers.google.com/google-ads/api/do

More confusion with Generate Historical Metrics

2022-05-29 Thread Bruce Axtens
According to the documentation To generate historical metrics: Create a KeywordPlan, KeywordPlanCampaigns, KeywordPlanAdGroups, KeywordPlanCampaignKeywords, and KeywordPlanAdGroupKeywords. Call KeywordPlanService.GenerateHistoricalMetrics with that keyword plan. Now the weird thing is that the p

Google.Protobuf.dll is right next to my .dll but it is not being found or loaded

2022-07-13 Thread Bruce Axtens
ssage); T.Fail(fnfe.Message); } catch (Exception e) { Console.Error.WriteLine(e.Message); T.Fail(e.Message); } return status; } The plugin code FWIW (which isn't much) is at <https://github.com/axtens/Plugin_GoogleAds_Metrics> What's not working

invalid_grant occurring on previously functional code

2024-10-20 Thread Bruce Axtens
The detailed request log is below. I do not understand what is wrong with request, nor do I understand why I am able to authorise for API calls yet fail with an auth issue on this particular call. Ideas anyone? GoogleAds.DetailedRequestLogs Information: 1 : [2024-10-21 05:46:42Z] - ---

Re: "the caller does not have permission" in generatekeywordhistoricalmetrics (part 2)

2024-10-25 Thread Bruce Axtens
Hello GAAT This doesn't make a lot of sense to me. 7212153394 is my login-customer-id and I've also supplied it as the customerId and STILL "The caller does not have permission". 7212153394 is the root of the tree. Kind regards, Bruce. On Thursday, October 24, 2024 at 5:12:37 PM UTC+8 Google A

"The caller does not have permission" in GenerateKeywordHistoricalMetrics

2024-10-23 Thread Bruce Axtens
Here's my code ``` internal string GenerateKeywordHistoricalMetricsByKeyword_2(GoogleAdsClient client, string ccid, string product_url,

"The caller does not have permission" in GenerateKeywordHistoricalMetrics (Part 2)

2024-10-24 Thread Bruce Axtens
After some time the .log file filled. Here it is. Notice that there is a login-customer-id. I am reliably informed that it is the one at the top of the tree. ``` GoogleAds.DetailedRequestLogs Information: 1 : [2024-10-24 06:37:55Z] - ---BEGIN API CALL--- Request ---

"The caller does not have permission" in GenerateKeywordHistoricalMetrics (Part 2)

2024-10-24 Thread Bruce Axtens
The log truned up. There is a login-customer-id that is the top of the tree. ``` GoogleAds.DetailedRequestLogs Information: 1 : [2024-10-24 07:18:48Z] - ---BEGIN API CALL--- Request --- Method Name: /google.ads.googleads.v18.services.KeywordPlanIdeaService/GenerateKe

Legacy Support?

2025-01-13 Thread Bruce Axtens
In the online documentation at https://developers.google.com/google-ads/api/reference/rpc/v18/HistoricalMetricsOptions#include_average_cpc include_average_cpc it reads, "Indicates whether to include average cost per click value. Average CPC is provided only for legacy support." What does "lega