Re: Is there a way to do a request with a Google Ads test account?

2019-10-30 Thread Leonardo Botta
My problem here is I don't know where I can get the ADGROUP_ID from because 
the test account does not have real ads. So I don't have a adGroup

Here is the code I am testing

  GetKeywordIdeas GetKeywordIdeas = new GetKeywordIdeas();
Console.WriteLine(GetKeywordIdeas.Description);
try
{
  long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE");
  GetKeywordIdeas.Run(new AdWordsUser(), adGroupId);
}
catch (Exception e)
{
Console.WriteLine("An exception occurred while running this 
code example. {0}",
ExampleUtilities.FormatException(e));
}




  /// 
/// Runs the code example.
/// 
/// The AdWords user.
/// ID of the ad group to use for generating 
ideas.
public void Run(AdWordsUser user, long? adGroupId) {
  using (TargetingIdeaService targetingIdeaService =
  (TargetingIdeaService) 
user.GetService(AdWordsService.v201809.TargetingIdeaService)) {
// Create selector.
TargetingIdeaSelector selector = new TargetingIdeaSelector {
  requestType = RequestType.STATS,
  ideaType = IdeaType.KEYWORD,
  requestedAttributeTypes = new AttributeType[] {
AttributeType.KEYWORD_TEXT,
AttributeType.SEARCH_VOLUME,
AttributeType.AVERAGE_CPC,
AttributeType.COMPETITION,
AttributeType.CATEGORY_PRODUCTS_AND_SERVICES,
AttributeType.TARGETED_MONTHLY_SEARCHES
  }
};


List searchParameters = new 
List();

// Create related to query search parameter.
RelatedToQuerySearchParameter relatedToQuerySearchParameter =
new RelatedToQuerySearchParameter {
  queries = new string[] {
"bakery", "pastries", "birthday cake"
  }
};
searchParameters.Add(relatedToQuerySearchParameter);

// Add a language search parameter (optional).
// The ID can be found in the documentation:
//  
 https://developers.google.com/adwords/api/docs/appendix/languagecodes
LanguageSearchParameter languageParameter = new 
LanguageSearchParameter();
Language english = new Language {
  id = 1000
};
languageParameter.languages = new Language[] { english };
searchParameters.Add(languageParameter);

// Add network search parameter (optional).
NetworkSetting networkSetting = new NetworkSetting {
  targetGoogleSearch = true,
  targetSearchNetwork = false,
  targetContentNetwork = false,
  targetPartnerSearchNetwork = false
};

NetworkSearchParameter networkSearchParameter = new 
NetworkSearchParameter {
  networkSetting = networkSetting
};
searchParameters.Add(networkSearchParameter);

// Optional: Use an existing ad group to generate ideas.
if (adGroupId != null) {
  SeedAdGroupIdSearchParameter seedAdGroupIdSearchParameter =
  new SeedAdGroupIdSearchParameter {
adGroupId = adGroupId.Value
  };
  searchParameters.Add(seedAdGroupIdSearchParameter);
}

// Set the search parameters.
selector.searchParameters = searchParameters.ToArray();

// Set selector paging (required for targeting idea service).
selector.paging = Paging.Default;

TargetingIdeaPage page = new TargetingIdeaPage();

try {
  int i = 0;
  do {
// Get related keywords.
page = targetingIdeaService.get(selector);

// Display related keywords.
if (page.entries != null && page.entries.Length > 0) {
  foreach (TargetingIdea targetingIdea in page.entries) {
Dictionary ideas =
targetingIdea.data.ToDict();

string keyword = (ideas[AttributeType.KEYWORD_TEXT] as 
StringAttribute).value;
IntegerSetAttribute categorySet =
ideas[AttributeType.CATEGORY_PRODUCTS_AND_SERVICES] as 
IntegerSetAttribute;

string categories = "";

if (categorySet != null && categorySet.value != null) {
  categories = string.Join(", ", categorySet.value);
}

long averageMonthlySearches =
(ideas[AttributeType.SEARCH_VOLUME] as 
LongAttribute).value;

Money averageCpc = (ideas[AttributeType.AVERAGE_CPC] as 
MoneyAttribute).value;
double competition = (ideas[AttributeType.COMPETITION] as 
DoubleAttribute).value;
Console.WriteLine("Keyword with text '{0}', average monthly 
search " +
"volume {1}, average CPC {2}, and competition {3:F2} 
was found with " +
"categories: {4}", keyword, averageMonthlySearches, 
averageCpc?.microAmount

Re: Is there a way to do a request with a Google Ads test account?

2019-10-30 Thread Leonardo Botta

Hi, is it possible to retrieve data using the TargetingIdeaService 

 from 
a test account?
I ask this because since the test account does not have real ads I suppose 
there is no date to retrieve, or am I wrong?

Thanks


El viernes, 25 de octubre de 2019, 11:34:34 (UTC-3), adsapiforumadvisor 
escribió:
>
> Hi Leonardo,
>
> The account you provided is a production account, not a test account. You 
> need to create a new test account with the developer token from the account 
> you provided. Please see instructions here 
> 
> .
>
> In order to replicate the keyword planner in the API, you can use the 
> TargetingIdeaService 
> .
>  
> Please see this guide 
> 
>  for 
> more information.
>
> Regards,
> Anthony
> Google Ads API Team
>
>
> ref:_00D1U1174p._5001UKONnw:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/de1cabf3-1c42-41f5-8eb0-e4db7f140219%40googlegroups.com.


Re: Is there a way to do a request with a Google Ads test account?

2019-10-25 Thread Leonardo Botta
We want to replicate what the metric history report of the keyword planner 
would be but doing it from a service

El viernes, 25 de octubre de 2019, 9:54:09 (UTC-3), Leonardo Botta escribió:
>
> What we need to do is a service that consults the amount of google 
> searches of a specific list of keywords, each with a corresponding 
> geographical location.
> Is this possible using the adwords api? Could you give us a link where we 
> have an example code, since we could not find one. In addition to the 
> account we have created, we are not able to make the request to the api 
> since it gives us the error that we do not have access permissions to the 
> production account when it is not what we want, we only need to access the 
> data using the basic test account.
>
> This are the settings we currently have
>
> 
> 
> 
>  />
> 
>  '1//0hGOslnXKT2fuCgYIARAAGBESNwF-L9IrvmLVE8Q_cgVyyCZtH2s_lxa-RiTYVk2fqe_YLaYyW6rJ491Ap0QSDQcJa8BO71xAnMI'
>  
> />
>
> Thanks in advance
>
> El jueves, 24 de octubre de 2019, 13:22:13 (UTC-3), adsapiforumadvisor 
> escribió:
>>
>> Hi Leonardo,
>>
>> Thank you for reaching out. Please see here  
>> <https://developers.google.com/adwords/api/docs/common-errors#QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED>for
>>  
>> more information on the DEVELOPER_TOKEN_NOT_APPROVED error and tips for 
>> fixing it. What is the client customer ID of the account you're using to 
>> make the API call? Have you followed all the steps in this guide 
>> <https://developers.google.com/adwords/api/docs/guides/accounts-overview#getting_started_with_test_accounts>
>>  to 
>> set up your test account?
>>
>> Regards,
>> Anthony
>> Google Ads API Team
>>
>>
>> ref:_00D1U1174p._5001UKONnw:ref
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/95181f0a-1f6d-4ac7-8b6f-d8e0aab6218c%40googlegroups.com.


Re: Is there a way to do a request with a Google Ads test account?

2019-10-25 Thread Leonardo Botta
What we need to do is a service that consults the amount of google searches 
of a specific list of keywords, each with a corresponding geographical 
location.
Is this possible using the adwords api? Could you give us a link where we 
have an example code, since we could not find one. In addition to the 
account we have created, we are not able to make the request to the api 
since it gives us the error that we do not have access permissions to the 
production account when it is not what we want, we only need to access the 
data using the basic test account.

This are the settings we currently have








Thanks in advance

El jueves, 24 de octubre de 2019, 13:22:13 (UTC-3), adsapiforumadvisor 
escribió:
>
> Hi Leonardo,
>
> Thank you for reaching out. Please see here  
> for
>  
> more information on the DEVELOPER_TOKEN_NOT_APPROVED error and tips for 
> fixing it. What is the client customer ID of the account you're using to 
> make the API call? Have you followed all the steps in this guide 
> 
>  to 
> set up your test account?
>
> Regards,
> Anthony
> Google Ads API Team
>
>
> ref:_00D1U1174p._5001UKONnw:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e10a3bf9-e670-496e-b191-9cb5dbe4f319%40googlegroups.com.


Re: Is there a way to do a request with a Google Ads test account?

2019-10-24 Thread Leonardo Botta


El jueves, 24 de octubre de 2019, 11:34:01 (UTC-3), Leonardo Botta escribió:
>
> I am always getting this error, I was wondering if I am getting that error 
> because of my account type
>
>
> http://schemas.xmlsoap.org/soap/envelope/";>
>
>   https://adwords.google.com/api/adwords/cm/v201809"; xmlns="
> https://adwords.google.com/api/adwords/o/v201809";>
>  000595a8dd9a7a930ac54941030a8a7f
>  TargetingIdeaService
>  get
>  1
>  117
>   
>
>
>   
>  soap:Server
>  [QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; 
> trigger:'<null>']
>  
> https://adwords.google.com/api/adwords/o/v201809"; xmlns:ns2="
> https://adwords.google.com/api/adwords/cm/v201809";>
>[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED 
> @ ; trigger:'<null>']
>   
>  ApiException
>http://www.w3.org/2001/XMLSchema-instance";>
>   
>   <null>
>   
> QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED
>   QuotaCheckError
>   DEVELOPER_TOKEN_NOT_APPROVED
>
> 
>  
>   
>
> 
>
> I am trying to do this kind of request:
>  
> TARGETED_MONTHLY_SEARCHES
>   
>
>
> If I do the request by an application I am getting this error:
>
> AdWordsApiException: Exception of type 
> 'Google.Api.Ads.AdWords.Lib.AdWordsApiException' was thrown. 
> Developer token is not approved for production access, and the customer is 
> attempting to access a production account.. (Error: 
> QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED, FieldPath: , Trigger: )
>
>
> What can I do?
>
>
> Thanks!!!
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/fdc11b65-a217-4839-a8d2-c4249c7ef069%40googlegroups.com.


Re: Is there a way to do a request with a Google Ads test account?

2019-10-24 Thread Leonardo Botta


El jueves, 24 de octubre de 2019, 13:22:13 (UTC-3), adsapiforumadvisor 
escribió:
>
> Hi Leonardo,
>
> Thank you for reaching out. Please see here  
> for
>  
> more information on the DEVELOPER_TOKEN_NOT_APPROVED error and tips for 
> fixing it. What is the client customer ID of the account you're using to 
> make the API call? Have you followed all the steps in this guide 
> 
>  to 
> set up your test account?
>
> Regards,
> Anthony
> Google Ads API Team
>
>
> ref:_00D1U1174p._5001UKONnw:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c8b2e88c-b20b-4ea0-9a54-c81da8a94d6a%40googlegroups.com.


Is there a way to do a request with a Google Ads test account?

2019-10-24 Thread Leonardo Botta
I am always getting this error, I was wondering if I am getting that error 
because of my account type


http://schemas.xmlsoap.org/soap/envelope/";>
   
  https://adwords.google.com/api/adwords/cm/v201809"; 
xmlns="https://adwords.google.com/api/adwords/o/v201809";>
 000595a8dd9a7a930ac54941030a8a7f
 TargetingIdeaService
 get
 1
 117
  
   
   
  
 soap:Server
 [QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; 
trigger:'']
 
https://adwords.google.com/api/adwords/o/v201809"; 
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201809";>
   [QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ 
; trigger:'']
  
 ApiException
   http://www.w3.org/2001/XMLSchema-instance";>
  
  
  
QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED
  QuotaCheckError
  DEVELOPER_TOKEN_NOT_APPROVED
   

 
  
   


I am trying to do this kind of request:
 
TARGETED_MONTHLY_SEARCHES
  


If I do the request by an application I am getting this error:

AdWordsApiException: Exception of type 
'Google.Api.Ads.AdWords.Lib.AdWordsApiException' was thrown. 
Developer token is not approved for production access, and the customer is 
attempting to access a production account.. (Error: 
QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED, FieldPath: , Trigger: )


What can I do?


Thanks!!!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/49622dbf-7250-45ce-b346-935e1789de77%40googlegroups.com.


TARGETED_MONTHLY_SEARCHES Query per month and location

2019-10-22 Thread Leonardo Botta
Hi, I have been looking for a complete example or 
TARGETED_MONTHLY_SEARCHES  query and I could not find it.
I need to get the number of google searches of some keywords on each month 
of the last year, depending on the geographic location, is that possible 
using the AttributeType.TARGETED_MONTHLY_SEARCHES?
I found this example code, I downloaded the full repo 
https://github.com/googleads/googleads-dotnet-lib/blob/master/src/AdWords/v201809/AdWordsApi.cs
There there is no example of a TARGETED_MONTHLY_SEARCHES query.
I will appreciate if someone can help me with this.
I already have a google ads account, clientId, clientCustomerId, developer 
token and refresh token

Thanks!!!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/15496fcd-6e88-4f7f-b907-50e9b7f2ca2f%40googlegroups.com.


TARGETED_MONTHLY_SEARCHES queries

2019-10-22 Thread Leonardo Botta
Hi, I have been looking for a complete example or 
TARGETED_MONTHLY_SEARCHES  query and I could not find it.
I need to get the number of google searches of some keywords on each month 
of the last year, depending on the geographic location, is that possible 
using the AttributeType.TARGETED_MONTHLY_SEARCHES?
I found this example code, I downloaded the full repo 
https://github.com/googleads/googleads-dotnet-lib/blob/master/src/AdWords/v201809/AdWordsApi.cs
There there is no example of a TARGETED_MONTHLY_SEARCHES query.
I will appreciate if someone can help me with this.
I already have a google ads account, clientId, clientCustomerId, developer 
token and refresh token

Thanks!!!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/1ca80fc9-08b6-4080-b3ce-d2d77e2984eb%40googlegroups.com.