Re: TargetingIdeaService - pythonlib example code not working correctly - INVALID_SEARCH_PARAMETERS

2018-09-21 Thread 'Teja Makani' via AdWords API and Google Ads API Forum
Hello Cameron, 

The TargetingIdeaError.INVALID_ 
SEARCH_PARAMETERS 

 error 
occurs when a SearchParameter 

 does 
not match the IdeaType 

 specified 
in the TargetingIdeaSelector 

 or 
is otherwise invalid. Looks like you are trying to run get_keyword_ideas.py 
.
 
I ran the same example commenting out the optional lines and able to fetch 
the results for keyword ideas. Even I ran your code and it works fine. If 
the problem persists could you please share the SOAP logs(request and 
response) without redacting any information. Please follow the instruction 
shown in this README.md 

 file 
to enable logging. 

Regards,
Sai Teja, AdWords API Team.

On Friday, September 21, 2018 at 3:12:28 PM UTC-4, Cameron Warren wrote:
>
> Running code to pull data from the TargetingIdeaService SOAP api. I'm 
> using the example exactly as written of the google github repository (see 
> code below).
>
> Oauth and everything else working fine. Here is the error:
>
> suds.WebFault: Server raised fault: 
> '[TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ 
> selector.searchParameters.searchParameters[0]; 
> trigger:'RelatedToQuerySearchParameter']'
>
>
>
> If anyone know's what's going on here - you're help is greatly appreciated!
>
>
>
>
> AD_GROUP_ID = None
> PAGE_SIZE = 100
>
> def main(client, ad_group_id=None):
>   # Initialize appropriate service.
>   targeting_idea_service = client.GetService(
>   'TargetingIdeaService', version='v201802')
>
>   # Construct selector object and retrieve related keywords.
>   selector = {
>   'ideaType': 'KEYWORD',
>   'requestType': 'IDEAS'
>   }
>
>   selector['requestedAttributeTypes'] = [
>   'KEYWORD_TEXT', 'SEARCH_VOLUME', 'CATEGORY_PRODUCTS_AND_SERVICES']
>
>   offset = 0
>   selector['paging'] = {
>   'startIndex': str(offset),
>   'numberResults': str(PAGE_SIZE)
>   }
>
>   selector['searchParameters'] = [{
>   'xsi_type': 'RelatedToQuerySearchParameter',
>   'queries': ['baseball']
>   }]
>
>   # # Language setting (optional).
>   # selector['searchParameters'].append({
>   # # The ID can be found in the documentation:
>   # # 
> https://developers.google.com/adwords/api/docs/appendix/languagecodes
>   # 'xsi_type': 'LanguageSearchParameter',
>   # 'languages': [{'id': '1000'}]
>   # })
>
>   # # Network search parameter (optional)
>   # selector['searchParameters'].append({
>   # 'xsi_type': 'NetworkSearchParameter',
>   # 'networkSetting': {
>   # 'targetGoogleSearch': True,
>   # 'targetSearchNetwork': False,
>   # 'targetContentNetwork': False,
>   # 'targetPartnerSearchNetwork': False
>   # }
>   # })
>
>   # # Use an existing ad group to generate ideas (optional)
>   # if ad_group_id is not None:
>   #   selector['searchParameters'].append({
>   #   'xsi_type': 'SeedAdGroupIdSearchParameter',
>   #   'adGroupId': ad_group_id
>   #   })
>
>   more_pages = True
>   while more_pages:
> page = targeting_idea_service.get(selector)
>
> # Display results.
> if 'entries' in page:
>   for result in page['entries']:
> attributes = {}
> for attribute in result['data']:
>   attribute_value = attribute['value']
>   if 'value' in attribute_value:
> attributes[attribute['key']] = attribute_value['value']
>   else:
> attributes[attribute['key']] = []
> print ('Keyword with "%s" text and average monthly search volume '
>'"%s" was found with Products and Services categories: %s.'
>% (attributes['KEYWORD_TEXT'],
>   attributes['SEARCH_VOLUME'],
>   attributes['CATEGORY_PRODUCTS_AND_SERVICES']))
>   print
> else:
>   print 'No related keywords were found.'
> offset += PAGE_SIZE
> selector['paging']['startIndex'] = str(offset)
> more_pages = offset < int(page['totalNumEntries'])
>
>
> if __name__ == '__main__':
>   # Initialize client object.
>   adwords_client = adwords.AdWordsClient.LoadFromStorage()
>
>   

Re: Errors: [AuthorizationError.CUSTOMER_NOT_ACTIVE @ ; trigger:''] suddenly showing for active MCC accounts

2018-09-21 Thread Kim Walker
Thank you!

On Fri, Sep 21, 2018 at 1:14 PM 'Milind Sankeshware (AdWords API Team)' via
AdWords API and Google Ads API Forum  wrote:

> Hi Kim,
>
> Unfortunately, there is no way to get the active and cancelled accounts
> list in single response via API. However, you will get the only active
> accounts using ManagedCustomerService.get
> 
> API call. Let me know if you have any further questions.
>
> Thanks,
> Milind, AdWords API Team
>
> --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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 a topic in the
> Google Groups "AdWords API and Google Ads API Forum" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/adwords-api/euIs6Uhyxn0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> adwords-api+unsubscr...@googlegroups.com.
> Visit this group at https://groups.google.com/group/adwords-api.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/adwords-api/bb79fb69-d155-4b51-8e78-0996cb7ec7a9%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
KIM WALKER
Product Manager
T:
​ 408-466-7339


*CONFIDENTIAL INFORMATION*E-mails from
​Frequence, Inc
 normally contain confidential information and are for the sole use of the
intended recipient. Disclosure of the contents of this email to
unauthorized third parties,
​​
distribution of this email or other unauthorized use of this email or its
contents is strictly prohibited.  If you have received this email in error
or are no longer authorized to have access to its contents, you are
instructed to immediately notify the sender of the error and delete the
e-mail, all attachments and all copies.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/CABT9XSq9RhHRRH%3DXS6iys_09eKmBrKYxiTdr6rT3cRPNnt_ZtQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Errors: [AuthorizationError.CUSTOMER_NOT_ACTIVE @ ; trigger:''] suddenly showing for active MCC accounts

2018-09-21 Thread 'Milind Sankeshware (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Kim,

Unfortunately, there is no way to get the active and cancelled accounts 
list in single response via API. However, you will get the only active 
accounts using ManagedCustomerService.get 

 
API call. Let me know if you have any further questions. 

Thanks,
Milind, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/bb79fb69-d155-4b51-8e78-0996cb7ec7a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: TargetingIdeaService - INVALID SEARCH PARAMETERS - Python

2018-09-21 Thread 'Teja Makani' via AdWords API and Google Ads API Forum
Hello Scott,

I see that you have opened one more thread for this concern. To avoid 
duplication lets continue our discussion on this thread only. Please find 
my response below:

The TargetingIdeaError.INVALID_ 
SEARCH_PARAMETERS 

 error 
occurs when a SearchParameter 

 does 
not match the IdeaType 

 specified 
in the TargetingIdeaSelector 

 or 
is otherwise invalid. Looks like you are trying to run get_keyword_ideas.py 
.
 
I ran the same example commenting out the optional lines and able to fetch 
the results for keyword ideas. Even I ran your code and it works fine. If 
the problem persists could you please share the SOAP logs(request and 
response) without redacting any information. Please follow the instruction 
shown in this README.md 

 file 
to enable logging. 

Regards,
Sai Teja, AdWords API Team.

On Friday, September 21, 2018 at 5:34:17 AM UTC-4, 
sken...@franklinsports.com wrote:
>
> Running python code example but running into an error that doesn't make 
> sense:
>
> suds.WebFault: Server raised fault: 
> '[TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ 
> selector.searchParameters.searchParameters[0]; 
> trigger:'RelatedToQuerySearchParameter']'
>
>
> I'm using the code exactly as written off the github repository. No 
> problems with oauth or anything else - already have developer code, etc. 
> Code:
>
>
> from googleads import adwords
>
>
>
> AD_GROUP_ID = None
> PAGE_SIZE = 100
>
> def main(client, ad_group_id=None):
>   # Initialize appropriate service.
>   targeting_idea_service = client.GetService(
>   'TargetingIdeaService', version='v201802')
>
>   # Construct selector object and retrieve related keywords.
>   selector = {
>   'ideaType': 'KEYWORD',
>   'requestType': 'IDEAS'
>   }
>
>   selector['requestedAttributeTypes'] = [
>   'KEYWORD_TEXT', 'SEARCH_VOLUME', 'CATEGORY_PRODUCTS_AND_SERVICES']
>
>   offset = 0
>   selector['paging'] = {
>   'startIndex': str(offset),
>   'numberResults': str(PAGE_SIZE)
>   }
>
>   selector['searchParameters'] = [{
>   'xsi_type': 'RelatedToQuerySearchParameter',
>   'queries': ['baseball']
>   }]
>
>   # # Language setting (optional).
>   # selector['searchParameters'].append({
>   # # The ID can be found in the documentation:
>   # # 
> https://developers.google.com/adwords/api/docs/appendix/languagecodes
>   # 'xsi_type': 'LanguageSearchParameter',
>   # 'languages': [{'id': '1000'}]
>   # })
>
>   # # Network search parameter (optional)
>   # selector['searchParameters'].append({
>   # 'xsi_type': 'NetworkSearchParameter',
>   # 'networkSetting': {
>   # 'targetGoogleSearch': True,
>   # 'targetSearchNetwork': False,
>   # 'targetContentNetwork': False,
>   # 'targetPartnerSearchNetwork': False
>   # }
>   # })
>
>   # # Use an existing ad group to generate ideas (optional)
>   # if ad_group_id is not None:
>   #   selector['searchParameters'].append({
>   #   'xsi_type': 'SeedAdGroupIdSearchParameter',
>   #   'adGroupId': ad_group_id
>   #   })
>
>   more_pages = True
>   while more_pages:
> page = targeting_idea_service.get(selector)
>
> # Display results.
> if 'entries' in page:
>   for result in page['entries']:
> attributes = {}
> for attribute in result['data']:
>   attribute_value = attribute['value']
>   if 'value' in attribute_value:
> attributes[attribute['key']] = attribute_value['value']
>   else:
> attributes[attribute['key']] = []
> print ('Keyword with "%s" text and average monthly search volume '
>'"%s" was found with Products and Services categories: %s.'
>% (attributes['KEYWORD_TEXT'],
>   attributes['SEARCH_VOLUME'],
>   attributes['CATEGORY_PRODUCTS_AND_SERVICES']))
>   print
> else:
>   print 'No related keywords were found.'
> offset += PAGE_SIZE
> selector['paging']['startIndex'] = str(offset)
> more_pages = offset < int(page['totalNumEntries'])
>
>
> if __name__ == '__main__':
>   # Initialize client object.
>   adwords_client = adwords.AdWordsClient.LoadFromStorage()
>
>   main(adwords_client)
>
>
>
>
>

-- 
-- 

TargetingIdeaService - pythonlib example code not working correctly - INVALID_SEARCH_PARAMETERS

2018-09-21 Thread Cameron Warren
Running code to pull data from the TargetingIdeaService SOAP api. I'm using 
the example exactly as written of the google github repository (see code 
below).

Oauth and everything else working fine. Here is the error:

suds.WebFault: Server raised fault: 
'[TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ 
selector.searchParameters.searchParameters[0]; 
trigger:'RelatedToQuerySearchParameter']'



If anyone know's what's going on here - you're help is greatly appreciated!




AD_GROUP_ID = None
PAGE_SIZE = 100

def main(client, ad_group_id=None):
  # Initialize appropriate service.
  targeting_idea_service = client.GetService(
  'TargetingIdeaService', version='v201802')

  # Construct selector object and retrieve related keywords.
  selector = {
  'ideaType': 'KEYWORD',
  'requestType': 'IDEAS'
  }

  selector['requestedAttributeTypes'] = [
  'KEYWORD_TEXT', 'SEARCH_VOLUME', 'CATEGORY_PRODUCTS_AND_SERVICES']

  offset = 0
  selector['paging'] = {
  'startIndex': str(offset),
  'numberResults': str(PAGE_SIZE)
  }

  selector['searchParameters'] = [{
  'xsi_type': 'RelatedToQuerySearchParameter',
  'queries': ['baseball']
  }]

  # # Language setting (optional).
  # selector['searchParameters'].append({
  # # The ID can be found in the documentation:
  # # 
https://developers.google.com/adwords/api/docs/appendix/languagecodes
  # 'xsi_type': 'LanguageSearchParameter',
  # 'languages': [{'id': '1000'}]
  # })

  # # Network search parameter (optional)
  # selector['searchParameters'].append({
  # 'xsi_type': 'NetworkSearchParameter',
  # 'networkSetting': {
  # 'targetGoogleSearch': True,
  # 'targetSearchNetwork': False,
  # 'targetContentNetwork': False,
  # 'targetPartnerSearchNetwork': False
  # }
  # })

  # # Use an existing ad group to generate ideas (optional)
  # if ad_group_id is not None:
  #   selector['searchParameters'].append({
  #   'xsi_type': 'SeedAdGroupIdSearchParameter',
  #   'adGroupId': ad_group_id
  #   })

  more_pages = True
  while more_pages:
page = targeting_idea_service.get(selector)

# Display results.
if 'entries' in page:
  for result in page['entries']:
attributes = {}
for attribute in result['data']:
  attribute_value = attribute['value']
  if 'value' in attribute_value:
attributes[attribute['key']] = attribute_value['value']
  else:
attributes[attribute['key']] = []
print ('Keyword with "%s" text and average monthly search volume '
   '"%s" was found with Products and Services categories: %s.'
   % (attributes['KEYWORD_TEXT'],
  attributes['SEARCH_VOLUME'],
  attributes['CATEGORY_PRODUCTS_AND_SERVICES']))
  print
else:
  print 'No related keywords were found.'
offset += PAGE_SIZE
selector['paging']['startIndex'] = str(offset)
more_pages = offset < int(page['totalNumEntries'])


if __name__ == '__main__':
  # Initialize client object.
  adwords_client = adwords.AdWordsClient.LoadFromStorage()

  main(adwords_client)


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f4ba301a-7e43-41ee-90a5-dbdd3b2e3e83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Test Adwords account can't link to the Merchant Center account

2018-09-21 Thread lliuweitest


[image: TIM截图20180921181017.png]

follow this help doc 
,I can't 
link to the Merchant Center account use test adwords account, when I send 
an invitation to the test ads account, I can't found the invitation from 
the ads account setttings


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9337a974-4414-4ca6-b086-b92d661c9034%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Keyword Performance Report missing keywords

2018-09-21 Thread 'Bharani Cherukuri (AdWords API Team)' via AdWords API and Google Ads API Forum
Hello Tom, 

I see that you're segmenting the report by Date, which will group the 
keywords based on the date. However, few fields (Id, Criteria, 
KeywordMatchType) in the report query are of the type Attribute. This type 
will return the current state of the account, ignoring the timespan of the 
report. This means, irrespective of the date range, the attributes will 
always return the current keywords that are active in the account. Please 
check this guide 

 for 
more information. 

Let me know if you have any other questions. 

Regards,
Bharani, AdWords API Team

On Friday, September 21, 2018 at 6:54:31 AM UTC-4, 
tom.wagst...@raisingit.com wrote:
>
> Hi everyone,
>
> I am accessing the Keyword Performance Report via the API (in Python3, 
> using the standard libraries) and I'm making two separate requests, one to 
> bring back a list of all my active (/enabled/eligible) keywords, and 
> another to pull performance data for those keywords. I do this because the 
> performance report returns data on inactive keywords that I want to filter 
> out.
>
> I'm puzzled because some active keywords are not being returned in the 
> keyword performance report. According to this advice [
> https://support.google.com/google-ads/answer/2404039?hl=en-GB] the 
> performance report will exclude keywords that got no impressions, but I see 
> plenty of keywords with zero impressions that *are* returned in the 
> keyword performance report. So why are the keywords missing from the 
> performance report?
>
> Here is the code snippet I use to access the (live) status data:
>
> def getKeywordStatusReport(client):
> # Initialize appropriate service.
> report_downloader = client.GetReportDownloader(version="v201806")
>
>
> # Create report query.
> report_query = (adwords.ReportQueryBuilder()
>   .Select("ExternalCustomerId", "CampaignId", "AdGroupId", 
> "Id", "Criteria",
>   "KeywordMatchType", "CampaignStatus", 
> "AdGroupStatus", "Status")
>   .From("KEYWORDS_PERFORMANCE_REPORT")
>   .Where("Status").EqualTo("ENABLED")
>   .Where("AdGroupStatus").EqualTo("ENABLED")
>   .Where("CampaignStatus").EqualTo("ENABLED")
>   .Build())
>
> And the bit I use (the following day) to access the performance data:
>
> def getKeywordPerformanceReport(client):
> # Initialize appropriate service.
> report_downloader = client.GetReportDownloader(version="v201806")
>
>
> # Create report query.
> report_query = (adwords.ReportQueryBuilder()
>   .Select("ExternalCustomerId", "CampaignId", "AdGroupId", 
> "Id", "Criteria",
>   "KeywordMatchType", "Clicks", "Impressions", 
> "Cost", "Conversions", "Date")
>   .From("KEYWORDS_PERFORMANCE_REPORT")
>   .During("YESTERDAY")
>   .Build())
>
> Why would this second query fail to return data on keywords that were 
> active the previous day?
>
> Cheers,
> Tom
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6e3d6e15-c95e-4744-a5e7-7b0bc3f07195%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to know which account was created by MCC ?

2018-09-21 Thread 'Milind Sankeshware (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi,

With the ManagedCustomerService.get 

 API, 
you will get all the accounts which are created and linked by mutate() and 
mutateLink() method. But, you won't be able to differentiate the account 
(from mutate() and mutateLink() method). Let me know if you have any 
further questions. 

Thanks,
Milind, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/39a4d825-4bb2-425e-bfb8-3baaef61f0b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Errors: [AuthorizationError.CUSTOMER_NOT_ACTIVE @ ; trigger:''] suddenly showing for active MCC accounts

2018-09-21 Thread Kim Walker
Thanks for the info Milind,

Is there anyway we can see in the api response which accounts are active 
and which have been cancelled? 

On Wednesday, September 19, 2018 at 1:03:24 PM UTC-7, Milind Sankeshware 
(AdWords API Team) wrote:
>
> Hi Kim,
>
> Yes, the request will fail for inactive accounts and not for all other 
> accounts within the MCC. You can reactivate the canceled account by 
> following the steps in this guide 
> . Let me know 
> if you have any further questions. 
>
> Thanks,
> Milind, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c2229d3e-c874-41b4-b4c4-c42198519ddd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Errors: [AuthorizationError.CUSTOMER_NOT_ACTIVE @ ; trigger:''] suddenly showing for active MCC accounts

2018-09-21 Thread 'Milind Sankeshware (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi,

To avoid duplicates, please continue the discussion on this 

 
thread. 

Thanks,
Milind, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3025a0e8-8e35-4023-8caa-9d1afbda9e1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AuthorizationError.CUSTOMER_NOT_ACTIVE

2018-09-21 Thread 'Milind Sankeshware (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi,

If you are making the API call against a canceled account, you are expected 
to get the CUSTOMER_NOT_ACTIVE error. Could you please share the complete 
SOAP request and response along with the client customer id so that I can 
troubleshoot the issue? You can use 'Reply privately to author' option 
while responding.

Thanks,
Milind, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ff6f251a-6c1b-40dc-bc1d-39e2dd5ed0d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AuthorizationError.CUSTOMER_NOT_ACTIVE

2018-09-21 Thread Vizergy
I was eventually able to run my application again later this morning 
(9/21/2018) so the issue does still appear to be intermittent.  Can this 
issue still be investigated and fixed?  Thank you.

On Friday, September 21, 2018 at 8:36:33 AM UTC-4, Vizergy wrote:
>
> Now today (9/21/2018) the error just continually occurs even when I try to 
> re-run my application so I am not able to workaround the issue.  Please 
> advise.  I will try and re-run the application in a few hours to see if it 
> is resolved then.
>
> On Friday, September 21, 2018 at 8:29:13 AM UTC-4, Vizergy wrote:
>>
>> Hi Milind, 
>>
>> My application is also experiencing this issue intermittently as well.  
>> Usually if I re-run the application a few hours later it will work the next 
>> time.  This intermittent issue also began for us starting on 9/4/2018 and 
>> definitely appears to be an issue with the mcService.get(oAccountSelector) 
>> method returning inactive accounts.  Please advise.  Thank you.
>>
>> Google.Api.Ads.AdWords.Util.Reports.AdWordsReportsException: 
>> AdWordsReportsException: One or more AdWords Report download errors have 
>> occurred. 
>>
>>  
>>
>> AuthorizationError.CUSTOMER_NOT_ACTIVE. (Error: 
>> AuthorizationError.CUSTOMER_NOT_ACTIVE, FieldPath: , Trigger: )
>>
>>
>>
>> Error Type: AuthorizationError.CUSTOMER_NOT_ACTIVE Field Path:  Trigger: 
>>  AccountId: 
>>
>>
>> On Tuesday, September 4, 2018 at 10:50:36 AM UTC-4, Milind Sankeshware 
>> (AdWords API Team) wrote:
>>>
>>> Hi Eric,
>>>
>>> If your client reaches 15 months without any spend, it will be canceled. 
>>> If the target account that they are making their API calls against is not 
>>> active then they are likely to get AuthorizationError.CUSTOMER_NOT_ACTIVE 
>>> error. Could you please share the compete SOAP request and response logs 
>>> along with the client customer id so that I can troubleshoot the issue? You 
>>> can use ' Reply privately to author' while responding. 
>>>
>>> Thanks,
>>> Milind, AdWords API Team
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b0bb4eb4-7213-4090-99f4-1703368d5468%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Errors: [AuthorizationError.CUSTOMER_NOT_ACTIVE @ ; trigger:''] suddenly showing for active MCC accounts

2018-09-21 Thread Vizergy
This is the same issue as this other thread:
https://groups.google.com/forum/#!searchin/adwords-api/AuthorizationError.CUSTOMER_NOT_ACTIVE%7Csort:date/adwords-api/cAMNjosWT9M/R-bzuNC2FAAJ

We are also experiencing this issue intermittently beginning on 9/4/2018, 
but now today (9/21/2018) the issue just continually occurs so I cannot 
workaround the issue currently.  Please advise.

On Wednesday, September 19, 2018 at 4:03:24 PM UTC-4, Milind Sankeshware 
(AdWords API Team) wrote:
>
> Hi Kim,
>
> Yes, the request will fail for inactive accounts and not for all other 
> accounts within the MCC. You can reactivate the canceled account by 
> following the steps in this guide 
> . Let me know 
> if you have any further questions. 
>
> Thanks,
> Milind, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4ac842a8-8306-4c4c-b583-db89d60aec6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AuthorizationError.CUSTOMER_NOT_ACTIVE

2018-09-21 Thread Vizergy
Now today (9/21/2018) the error just continually occurs even when I try to 
re-run my application so I am not able to workaround the issue.  Please 
advise.  I will try and re-run the application in a few hours to see if it 
is resolved then.

On Friday, September 21, 2018 at 8:29:13 AM UTC-4, Vizergy wrote:
>
> Hi Milind, 
>
> My application is also experiencing this issue intermittently as well.  
> Usually if I re-run the application a few hours later it will work the next 
> time.  This intermittent issue also began for us starting on 9/4/2018 and 
> definitely appears to be an issue with the mcService.get(oAccountSelector) 
> method returning inactive accounts.  Please advise.  Thank you.
>
> Google.Api.Ads.AdWords.Util.Reports.AdWordsReportsException: 
> AdWordsReportsException: One or more AdWords Report download errors have 
> occurred. 
>
>  
>
> AuthorizationError.CUSTOMER_NOT_ACTIVE. (Error: 
> AuthorizationError.CUSTOMER_NOT_ACTIVE, FieldPath: , Trigger: )
>
>
>
> Error Type: AuthorizationError.CUSTOMER_NOT_ACTIVE Field Path:  Trigger: 
>  AccountId: 
>
>
> On Tuesday, September 4, 2018 at 10:50:36 AM UTC-4, Milind Sankeshware 
> (AdWords API Team) wrote:
>>
>> Hi Eric,
>>
>> If your client reaches 15 months without any spend, it will be canceled. 
>> If the target account that they are making their API calls against is not 
>> active then they are likely to get AuthorizationError.CUSTOMER_NOT_ACTIVE 
>> error. Could you please share the compete SOAP request and response logs 
>> along with the client customer id so that I can troubleshoot the issue? You 
>> can use ' Reply privately to author' while responding. 
>>
>> Thanks,
>> Milind, AdWords API Team
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7af53e0a-a293-4d16-88f7-e4405a344b42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AuthorizationError.CUSTOMER_NOT_ACTIVE

2018-09-21 Thread Vizergy
Hi Milind, 

My application is also experiencing this issue intermittently as well.  
Usually if I re-run the application a few hours later it will work the next 
time.  This intermittent issue also began for us starting on 9/4/2018 and 
definitely appears to be an issue with the mcService.get(oAccountSelector) 
method returning inactive accounts.  Please advise.  Thank you.

Google.Api.Ads.AdWords.Util.Reports.AdWordsReportsException: 
AdWordsReportsException: One or more AdWords Report download errors have 
occurred. 

 

AuthorizationError.CUSTOMER_NOT_ACTIVE. (Error: 
AuthorizationError.CUSTOMER_NOT_ACTIVE, FieldPath: , Trigger: )



Error Type: AuthorizationError.CUSTOMER_NOT_ACTIVE Field Path:  Trigger: 
 AccountId: 


On Tuesday, September 4, 2018 at 10:50:36 AM UTC-4, Milind Sankeshware 
(AdWords API Team) wrote:
>
> Hi Eric,
>
> If your client reaches 15 months without any spend, it will be canceled. 
> If the target account that they are making their API calls against is not 
> active then they are likely to get AuthorizationError.CUSTOMER_NOT_ACTIVE 
> error. Could you please share the compete SOAP request and response logs 
> along with the client customer id so that I can troubleshoot the issue? You 
> can use ' Reply privately to author' while responding. 
>
> Thanks,
> Milind, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/62eee7b8-25cd-484a-af3f-dea670333425%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Keyword Performance Report missing keywords

2018-09-21 Thread tom . wagstaff
Hi everyone,

I am accessing the Keyword Performance Report via the API (in Python3, 
using the standard libraries) and I'm making two separate requests, one to 
bring back a list of all my active (/enabled/eligible) keywords, and 
another to pull performance data for those keywords. I do this because the 
performance report returns data on inactive keywords that I want to filter 
out.

I'm puzzled because some active keywords are not being returned in the 
keyword performance report. According to this advice [
https://support.google.com/google-ads/answer/2404039?hl=en-GB] the 
performance report will exclude keywords that got no impressions, but I see 
plenty of keywords with zero impressions that *are* returned in the keyword 
performance report. So why are the keywords missing from the performance 
report?

Here is the code snippet I use to access the (live) status data:

def getKeywordStatusReport(client):
# Initialize appropriate service.
report_downloader = client.GetReportDownloader(version="v201806")


# Create report query.
report_query = (adwords.ReportQueryBuilder()
  .Select("ExternalCustomerId", "CampaignId", "AdGroupId", 
"Id", "Criteria",
  "KeywordMatchType", "CampaignStatus", 
"AdGroupStatus", "Status")
  .From("KEYWORDS_PERFORMANCE_REPORT")
  .Where("Status").EqualTo("ENABLED")
  .Where("AdGroupStatus").EqualTo("ENABLED")
  .Where("CampaignStatus").EqualTo("ENABLED")
  .Build())

And the bit I use (the following day) to access the performance data:

def getKeywordPerformanceReport(client):
# Initialize appropriate service.
report_downloader = client.GetReportDownloader(version="v201806")


# Create report query.
report_query = (adwords.ReportQueryBuilder()
  .Select("ExternalCustomerId", "CampaignId", "AdGroupId", 
"Id", "Criteria",
  "KeywordMatchType", "Clicks", "Impressions", 
"Cost", "Conversions", "Date")
  .From("KEYWORDS_PERFORMANCE_REPORT")
  .During("YESTERDAY")
  .Build())

Why would this second query fail to return data on keywords that were 
active the previous day?

Cheers,
Tom

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b0444633-846e-4f65-bda2-fcd8a4e273d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


TargetingIdeaService - INVALID SEARCH PARAMETERS - Python

2018-09-21 Thread Skennedy
Running python code example but running into an error that doesn't make 
sense:

suds.WebFault: Server raised fault: 
'[TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ 
selector.searchParameters.searchParameters[0]; 
trigger:'RelatedToQuerySearchParameter']'


I'm using the code exactly as written off the github repository. No 
problems with oauth or anything else - already have developer code, etc. 
Code:


from googleads import adwords



AD_GROUP_ID = None
PAGE_SIZE = 100

def main(client, ad_group_id=None):
  # Initialize appropriate service.
  targeting_idea_service = client.GetService(
  'TargetingIdeaService', version='v201802')

  # Construct selector object and retrieve related keywords.
  selector = {
  'ideaType': 'KEYWORD',
  'requestType': 'IDEAS'
  }

  selector['requestedAttributeTypes'] = [
  'KEYWORD_TEXT', 'SEARCH_VOLUME', 'CATEGORY_PRODUCTS_AND_SERVICES']

  offset = 0
  selector['paging'] = {
  'startIndex': str(offset),
  'numberResults': str(PAGE_SIZE)
  }

  selector['searchParameters'] = [{
  'xsi_type': 'RelatedToQuerySearchParameter',
  'queries': ['baseball']
  }]

  # # Language setting (optional).
  # selector['searchParameters'].append({
  # # The ID can be found in the documentation:
  # # 
https://developers.google.com/adwords/api/docs/appendix/languagecodes
  # 'xsi_type': 'LanguageSearchParameter',
  # 'languages': [{'id': '1000'}]
  # })

  # # Network search parameter (optional)
  # selector['searchParameters'].append({
  # 'xsi_type': 'NetworkSearchParameter',
  # 'networkSetting': {
  # 'targetGoogleSearch': True,
  # 'targetSearchNetwork': False,
  # 'targetContentNetwork': False,
  # 'targetPartnerSearchNetwork': False
  # }
  # })

  # # Use an existing ad group to generate ideas (optional)
  # if ad_group_id is not None:
  #   selector['searchParameters'].append({
  #   'xsi_type': 'SeedAdGroupIdSearchParameter',
  #   'adGroupId': ad_group_id
  #   })

  more_pages = True
  while more_pages:
page = targeting_idea_service.get(selector)

# Display results.
if 'entries' in page:
  for result in page['entries']:
attributes = {}
for attribute in result['data']:
  attribute_value = attribute['value']
  if 'value' in attribute_value:
attributes[attribute['key']] = attribute_value['value']
  else:
attributes[attribute['key']] = []
print ('Keyword with "%s" text and average monthly search volume '
   '"%s" was found with Products and Services categories: %s.'
   % (attributes['KEYWORD_TEXT'],
  attributes['SEARCH_VOLUME'],
  attributes['CATEGORY_PRODUCTS_AND_SERVICES']))
  print
else:
  print 'No related keywords were found.'
offset += PAGE_SIZE
selector['paging']['startIndex'] = str(offset)
more_pages = offset < int(page['totalNumEntries'])


if __name__ == '__main__':
  # Initialize client object.
  adwords_client = adwords.AdWordsClient.LoadFromStorage()

  main(adwords_client)




-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3cfd5d05-178d-45a7-8969-a1943f3d5ab0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


TargetingIdeaService Request - Python - INVALID SEARCH PARAMETERS

2018-09-21 Thread Skennedy
I'm attempting to pull keyword planner data from the API using the python 
lib examples.

I continue to get the following error:  

suds.WebFault: Server raised fault: 
'[TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ 
selector.searchParameters.searchParameters[0]; 
trigger:'RelatedToQuerySearchParameter']'




I'm very confused on this error as I'm following the documentation exactly. 
Please help!

AD_GROUP_ID = None
PAGE_SIZE = 100

def main(client, ad_group_id=None):
  # Initialize appropriate service.
  targeting_idea_service = client.GetService(
  'TargetingIdeaService', version='v201802')

  # Construct selector object and retrieve related keywords.
  selector = {
  'ideaType': 'KEYWORD',
  'requestType': 'IDEAS'
  }

  selector['requestedAttributeTypes'] = [
  'KEYWORD_TEXT', 'SEARCH_VOLUME', 'CATEGORY_PRODUCTS_AND_SERVICES']

  offset = 0
  selector['paging'] = {
  'startIndex': str(offset),
  'numberResults': str(PAGE_SIZE)
  }

  selector['searchParameters'] = [{
  'xsi_type': 'RelatedToQuerySearchParameter',
  'queries': ['baseball']
  }]

  # # Language setting (optional).
  # selector['searchParameters'].append({
  # # The ID can be found in the documentation:
  # # 
https://developers.google.com/adwords/api/docs/appendix/languagecodes
  # 'xsi_type': 'LanguageSearchParameter',
  # 'languages': [{'id': '1000'}]
  # })

  # # Network search parameter (optional)
  # selector['searchParameters'].append({
  # 'xsi_type': 'NetworkSearchParameter',
  # 'networkSetting': {
  # 'targetGoogleSearch': True,
  # 'targetSearchNetwork': False,
  # 'targetContentNetwork': False,
  # 'targetPartnerSearchNetwork': False
  # }
  # })

  # # Use an existing ad group to generate ideas (optional)
  # if ad_group_id is not None:
  #   selector['searchParameters'].append({
  #   'xsi_type': 'SeedAdGroupIdSearchParameter',
  #   'adGroupId': ad_group_id
  #   })

  more_pages = True
  while more_pages:
page = targeting_idea_service.get(selector)

# Display results.
if 'entries' in page:
  for result in page['entries']:
attributes = {}
for attribute in result['data']:
  attribute_value = attribute['value']
  if 'value' in attribute_value:
attributes[attribute['key']] = attribute_value['value']
  else:
attributes[attribute['key']] = []
print ('Keyword with "%s" text and average monthly search volume '
   '"%s" was found with Products and Services categories: %s.'
   % (attributes['KEYWORD_TEXT'],
  attributes['SEARCH_VOLUME'],
  attributes['CATEGORY_PRODUCTS_AND_SERVICES']))
  print
else:
  print 'No related keywords were found.'
offset += PAGE_SIZE
selector['paging']['startIndex'] = str(offset)
more_pages = offset < int(page['totalNumEntries'])


if __name__ == '__main__':
  # Initialize client object.
  adwords_client = adwords.AdWordsClient.LoadFromStorage()

  main(adwords_client)


AD_GROUP_ID = None
PAGE_SIZE = 100

def main(client, ad_group_id=None):
 # Initialize appropriate service.
 targeting_idea_service = client.GetService(
 'TargetingIdeaService', version='v201802')

  # Construct selector object and retrieve related keywords.
 selector = {
 'ideaType': 'KEYWORD',
 'requestType': 'IDEAS'
 }

  selector['requestedAttributeTypes'] = [
 'KEYWORD_TEXT', 'SEARCH_VOLUME', 'CATEGORY_PRODUCTS_AND_SERVICES']

  offset = 0
 selector['paging'] = {
 'startIndex': str(offset),
 'numberResults': str(PAGE_SIZE)
 }

  selector['searchParameters'] = [{
 'xsi_type': 'RelatedToQuerySearchParameter',
 'queries': ['baseball']
 }]

  # # Language setting (optional).
 # selector['searchParameters'].append({
 # # The ID can be found in the documentation:
 # # 
https://developers.google.com/adwords/api/docs/appendix/languagecodes
 # 'xsi_type': 'LanguageSearchParameter',
 # 'languages': [{'id': '1000'}]
 # })

  # # Network search parameter (optional)
 # selector['searchParameters'].append({
 # 'xsi_type': 'NetworkSearchParameter',
 # 'networkSetting': {
 # 'targetGoogleSearch': True,
 # 'targetSearchNetwork': False,
 # 'targetContentNetwork': False,
 # 'targetPartnerSearchNetwork': False
 # }
 # })

  # # Use an existing ad group to generate ideas (optional)
 # if ad_group_id is not None:
 #   selector['searchParameters'].append({
 #   'xsi_type': 'SeedAdGroupIdSearchParameter',
 #   'adGroupId': ad_group_id
 #   })

  more_pages = True
 while more_pages:
   page = targeting_idea_service.get(selector)

# Display results.
   if 'entries' in page:
 for result in page['entries']:
   attributes = {}
   for attribute in result['data']:
 attribute_value = attribute['value']
 if 'value' in attribute_value:
   

Re: QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED for test account

2018-09-21 Thread Vibhesh Mishra
hi 

I have created two client account in my test manager account, and i am able 
do all the operation like getting campaign data and related item using c# 
but i am facing issue with second one

Test MagerAccount is 600-800-6574 WM Test Mager 

Client Accounts

1) www.test1.com--- i am able do all the operation like getting campaign 
data and related details using c#

2) www.test2.com--- Getting error as given below

{"AdWordsApiException: Exception of type 
'Google.Api.Ads.AdWords.Lib.AdWordsApiException' was thrown. 
\r\n\r\nDeveloper 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: 
)\r\n\r\n"}

but as per my knowledge

 All client accounts created under the test manager account will be 
automatically marked as test accounts.

ref 
https://developers.google.com/adwords/api/docs/guides/accounts-overview

Please help 

Thanks in advance 

On Thursday, September 20, 2018 at 11:52:56 AM UTC+5:30, Luis Xander Talag 
(AdWords API Team) wrote:
>
> Hi Alix,
>
> The DEVELOPER_TOKEN_NOT_APPROVED 
> 
>  error 
> you encountered indicates that you are using an unapproved developer token 
> to make calls against a production account. Make sure that the 
> clientCustomerId that you entered in your property file is from a test 
> client account. If you haven't created a test client account, you could use 
> the Google Ads UI to create a *test client account *under your test 
> manager account.
>
> If your issue persists after doing the suggestion, kindly provide your 
> SOAP request and response logs via *Reply privately to author* so I can 
> further check.
>
> Thanks,
> Luis
> AdWords API Team
>
> On Thursday, September 20, 2018 at 7:20:03 AM UTC+8, Alix BelugaBear wrote:
>>
>> Hello,
>>
>> I have followed the instruction in order to test the Adword API:
>> - Created a "production" adword manager account
>> - Got an Developer token
>> - Created a "test" adword manager account
>> - Created OAUTH2 Credentials for this account
>> - Got the refresher token with this account 
>> - Tried to do some basic actions that comes with the PHP example 
>> AdwordAPI package but still get QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED
>>
>> I also tried using OAUTH2 credentials for production account and 
>> getRefresherToken, but same issue (which makes sense).
>>
>> However I don't understand if I have to link my production and test 
>> account somehow?
>>
>> Regards,
>>
>> Alix
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/80ff4ab3-309e-4365-9229-f38278d9e5bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get developer token

2018-09-21 Thread Denis Lukyanov
Hi Luis,

This is just a kind reminder about the issue. It still exists. Can't get a 
basic API access token for a month already!

Thanks.

On Friday, September 14, 2018 at 6:54:28 AM UTC+3, Luis Xander Talag 
(AdWords API Team) wrote:
>
> Hi Denis,
>
> Let me coordinate your concern with the Compliance Team as they are the 
> one whose handling the application for API access. Kindly wait for their 
> response.
>
> Thanks and regards,
> Luis
> AdWords API Team
>
> On Tuesday, September 11, 2018 at 7:09:46 PM UTC+8, Denis Lukyanov wrote:
>>
>> Hi Luis, 
>>
>> any updates for this? Again: it gives me "403 Forbidden" every time I try 
>> the links you gave me (in incognito mode also) and the link in the Google 
>> Ads admin interface. How do people apply for API access I wonder?? 
>>
>> On Friday, September 7, 2018 at 1:15:22 PM UTC+3, Luis Xander Talag 
>> (AdWords API Team) wrote:
>>>
>>> Hi Denis,
>>>
>>> Could you try and open this link 
>>>  in incognito mode to 
>>> apply for Basic Access?
>>>
>>> Let me know if it works.
>>>
>>> Regards,
>>> Luis
>>> AdWords API Team
>>>
>>> On Friday, September 7, 2018 at 5:17:01 PM UTC+8, Denis Lukyanov wrote:

 Hi Luis!

 I get "403 Forbidden" error when accessing a developer token 
 application form: when I click "Apply for Basic Access" (
 http://take.ms/9iVZK), I get this: http://take.ms/5GyOa. I'm stuck 
 with this, can you help me? Thanks!

 среда, 18 июля 2018 г., 8:12:24 UTC+3 пользователь Luis Xander Talag 
 (AdWords API Team) написал:
>
> Hi Sreekanth,
>
> After creating your MCC account, you should request for basic access 
> 
>  by 
> filling up and submitting this form 
>  for you to be able 
> to make API calls to your production account. The AdWords Compliance Team 
> should contact you within 2 business days for its status. Your developer 
> token can be found by logging in to Adwords UI using your MCC account 
> then 
> got to  *Tools, billing, and settings* icon  and select *AdWords API 
> Center.*
>
> The next step would be to generate your OAuth2 credentials 
>  to 
> get your client ID, client secret and refresh token, then download a 
> client 
> library 
> . 
> Once your setup has been completed and basic access has been approved, 
> you 
> may then be able to make calls using your production account. Feel free 
> to 
> write back to me for anything you may need to clarify about the guides 
> and 
> if there are any specific subjects you wish to learn about the AdWords 
> API.
>
> Thanks and regards,
> Luis
> AdWords API Team
>


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e1700dfb-41ea-4bd6-94ff-a37b63d2cfda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


HeadlinePart3 missing in AD_PERFORMANCE_REPORT in v201809

2018-09-21 Thread AdWordsApiUser
Hi Team,

HeadlinePart3 is supported to be added now (Thanks!) however the 
AD_PERFORMANCE_REPORT doesn't mention it, and throws an error when we try 
to use it with v201809. Is this just an oversight, or there is actually no 
plan to make HeadlinePart3 available through reports?

Cheers,
MG

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/af20e989-ca1f-4ff5-8fba-343145e10c8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.