Re: How do I get related keywords monthly search volume?

2017-02-15 Thread 'Peter Oliquino' via AdWords API Forum
Hi Abe,

There is currently no way that I am aware of that you can set the matchType 
of a keyword as a filter in the TargetingIdeaService or in the AdWords UI 
(via the Keyword Planner tool). Keyword results can be retrieved or 
filtered based on their RequestTypes, being IDEAS (to retrieve similar 
keyword ideas for your current keywords) or STATS (for retrieving 
historical keyword statistics). You may also refer to the 
TargetingIdeaSelector 

 for 
more information on how to define specific criteria for your requests. 

Additionally, could you confirm if you have tried your request both in the 
AdWords UI and the AdWords API and if you have gotten different results? If 
you experience any discrepancies, kindly send us the screenshot in the 
AdWords UI and the sample SOAP request and response so we can further 
investigate. You may reply using *Reply privately to author*.

As for the parameters that you mentioned, you may refer here 

 for 
the list of available search parameters in the TargetingIdeaService. The 
NetworkSearchParameter 

 should 
allow you to filter through the networks you wish to retrieve your results 
by specifying a target network in your NetworkSetting 

.

Best regards,
Peter
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/3799715b-f1fc-4a30-83f3-2567cc727d7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Issues with BatchJobService - jobs remain stuck

2017-02-15 Thread Stefan Kleine Stegemann

Hi Nadine,

To update you on this issue, the situation has not improved but rather got 
slightly worse. Today we have 33 stuck batch jobs (in status ACTIVE) with 
eight adwords accounts being affected. Yesterday, it was 30 batch jobs with 
three accounts being affected and on tuesday it was seven jobs, also with 
three accounts. So we see a slightly "negative" tendency here. I also 
checked some of the batch jobs we canceled yesterday and they are still in 
status "CANCELING". Even the jobs which got stuck on tuesday and which we 
also have canceled yesterday remain in "CANCELING". It seems that these 
jobs are not doing anything anymore and that there is something broken 
fundamentally.

Do you have any update on this issue? Can we expect batch jobs to come back 
to "normal"? We'd like to know that because if not, we need to take action 
to deal with such scenarios.

Best,
Stefan

Am Mittwoch, 15. Februar 2017 15:16:22 UTC+1 schrieb Nadine Sundquist 
(AdWords API Team):
>
> Hi Stefan,
>
> Thanks for reporting this. I personally experienced some longer than usual 
> running batch jobs last night as well. We're looking into what caused this 
> last spike in execution time.
>
> Cheers,
> Nadine, AdWords API Team
>
> On Wednesday, February 15, 2017 at 5:04:20 AM UTC-5, Stefan Kleine 
> Stegemann wrote:
>>
>> Hi,
>>
>> sorry for hijacking this thread but since yesterday morning, we also 
>> started to have significant troubles with batch job service. Jobs remained 
>> active for a very long time. The following jobs have been started yesterday 
>> morning, german time (see start time is noted for each job) and were still 
>> active this morning:
>>
>> Job 445516765 | 2017-02-14T03:34
>> Job 445553000 | 2017-02-14T03:20
>> Job 445532407 | 2017-02-14T03:58
>> Job 445532515 | 2017-02-14T03:58
>> Job 445693959 | 2017-02-14T03:58
>> Job 445694061 | 2017-02-14T03:59
>> Job 445694595 | 2017-02-14T03:59
>>
>> We've canceled the jobs this morning (after they are still reported to be 
>> active, how can that be?), but now they are in canceling state for about an 
>> hour (at the time of this writing). Furthermore, the situation got worse 
>> this morning, with 30 batch jobs being active for a couple of hours now. 
>> The ids of these jobs are attached to the end of this post. We will cancel 
>> these jobs as well because we do not expect them to finish, based on 
>> yesterday's experience.
>>
>> As an additional information, the problems seem to affect accounts with 
>> campaigns with a large to huge number or product partitions / keywords. The 
>> problematic jobs were "spreaded" over three adwords accounts yesterday and 
>> three accounts today. Two of the accounts affected yesterday are also 
>> affected today. We do use these batch jobs to set cpc bids for keywords and 
>> product partitions and use a maximum of 40.000 operations per job. We 
>> experimented with this number in the past and found that to be a "suitable" 
>> balance between performance and reliability of batch jobs. All jobs contain 
>> only one type of operation. While multiple jobs might affect the same 
>> campaign / adgroups, they do not affect the same keywords / product 
>> partitions. I was told on the past API workshop that this is ok and will 
>> not result in concurrency issues. In addition to concrete information on 
>> the issue, we would be happy to know if it makes sense to "play" with the 
>> limit of 40.000 operations per job again.
>>
>> As a general note, batch job continously tend to keep us busy since we 
>> switched to them last year. The runtime performance seems to be rather 
>> unpredictable. Especially on test accounts, batch jobs can run for a very 
>> long time (up to 30 minutes) which is painful if you want to run automated 
>> tests. Combined with the unclear advise on the number of operations to put 
>> in a batch job and best practices in general, that leaves us with a very 
>> uncertain feeling. Given the reliabilty issues we experienced in the past 
>> half year, we're currently thinking about ditching batch jobs entirely and 
>> implement batching on our site which would give us at least more control. 
>> We understand that the intend of batch jobs is like "fire and forget" 
>> (yeah, not really forget but check results etc.), we offload operations to 
>> AdWords and it takes care of it. Currently its more like "fire and pray". 
>> While we do not want to bring back the past, but we never had such troubles 
>> with mutate job service. I apologize for this bit of ranting, but it's 
>> constantly keeping us busy for a while now.
>>
>> Finally, here are the job ids of the still-active (soon to be canceled) 
>> jobs from this morning.
>>
>> 445954525
>> 445954540
>> 445989185
>> 446102085
>> 446102088
>> 445952002
>> 445986527
>> 445986596
>> 445986662
>> 445986857
>> 445987025
>> 445987106
>> 445987562
>> 445987577
>> 445987715
>> 446107815
>> 446107821
>> 446108097
>> 446108442
>> 446108472
>> 446108553
>> 446108598

How do I get related keywords monthly search volume?

2017-02-15 Thread abe-burnett
Hi there,

I'm trying to use the API with the Targeting Idea Service to get 
"targeted_monthly_searches" for various search terms: e.g., react.js, 
vue.js, angular.js. The trick is that I clearly get different results 
between, say, react.js and reactjs. So I'd prefer the aggregated related 
search term result be returned (i.e., the search traffic for "react.js" OR 
"reactjs"). I assume this is what occurs when match type is "broad," but 
I'm not sure how to specify different types of match when using the 
Targeting Idea Service (I see that the Traffic Estimator Service offers the 
ability to specify matchType as "BROAD", but this doesn't seem to be an 
option with the Targeting Idea Service.

Also, is there a way to put filtering in the query? I.e., when you're 
searching YouTube or Google you can be more specific by including OR, AND, 
and NOT parameters. But there doesn't seem to be any way to do that beyond 
just specifying matchType = BROAD. But does "broad" match type even 
function as desired (giving you, for example, an aggregate result for 
vuejs/vue.js/"vue js"/etc.?

# Here's what works:

from googleads import adwords
import pandas as pd


adwords_client = adwords.AdWordsClient.LoadFromStorage()

PAGE_SIZE = 10

# Initialize appropriate service.
targeting_idea_service = adwords_client.GetService(
'TargetingIdeaService', version='v201609')

# Construct selector object and retrieve related keywords.
offset = 0
stats_selector = {
'searchParameters': [
{
'xsi_type': 'RelatedToQuerySearchParameter',
'queries': ['react.js', 'reactjs', 'vuejs', 'vue.js']
},
{
# Language setting (optional).
# 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)
  'xsi_type': 'NetworkSearchParameter',
  'networkSetting': {
  'targetGoogleSearch': True,
  'targetSearchNetwork': False,
  'targetContentNetwork': False,
  'targetPartnerSearchNetwork': False
  }
 }
],
'ideaType': 'KEYWORD',
'requestType': 'STATS',
'requestedAttributeTypes': ['KEYWORD_TEXT', 
'TARGETED_MONTHLY_SEARCHES'],
'paging': {
'startIndex': str(offset),
'numberResults': str(PAGE_SIZE)
}
}

stats_page = targeting_idea_service.get(stats_selector)


# Parse results to pandas dataframe

stats_pd = pd.DataFrame()

if 'entries' in stats_page:
for stats_result in stats_page['entries']:
stats_attributes = {}
for stats_attribute in stats_result['data']:
#print (stats_attribute)
if stats_attribute['key'] == 'KEYWORD_TEXT':
kt = stats_attribute['value']['value']
else:
for i, val in enumerate(stats_attribute['value'][1]):   
 
data = {'keyword': kt,
'year': val['year'],
'month': val['month'],
'count': val['count']}
data = pd.DataFrame(data, index = [i])
stats_pd = stats_pd.append(data, ignore_index=True)


print(stats_pd)






  And this doesn't (but would be appealing):

from googleads import adwords
import pandas as pd


adwords_client = adwords.AdWordsClient.LoadFromStorage()

PAGE_SIZE = 10

# Initialize appropriate service.
targeting_idea_service = adwords_client.GetService(
'TargetingIdeaService', version='v201609')

# Construct selector object and retrieve related keywords.
offset = 0
stats_selector = {
'searchParameters': [
{
'xsi_type': 'RelatedToQuerySearchParameter',
'queries':  [
{'term': 'react js', 'matchType': 'BROAD'},
{'term': 'reactjs', 'matchType': 'PHRASE'},
{'term': 'react.js', 'matchType': 'EXACT'}
]
},
{
# Language setting (optional).
# 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)
  'xsi_type': 'NetworkSearchParameter',
  'networkSetting': {
  'targetGoogleSearch': True,
  'targetSearchNetwork': False,
  'targetContentNetwork': False,
  'targetPartnerSearchNetwork': False
  }
 }
],
'ideaType': 'KEYWORD',
'requestType': 'STATS',
'requestedAttributeTypes': ['KEYWORD_TEXT', 

Re: How get CustomerId with OAuth 2.0

2017-02-15 Thread 'Anash P. Oommen (AdWords API Team)' via AdWords API Forum
Hi Francesco,

The 
https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201609/AccountManagement/GetAccountHierarchy.php
 
code example should help you achieve your workflow, but for that to work, 
the access token you send as part of the request should belong to the 
logged-in user. I don't know of an easy way to reverse-lookup a user given 
the access token though.

Cheers,
Anash P. Oommen,
AdWords API Advisor,

On Friday, February 10, 2017 at 7:12:14 PM UTC-5, Francesco Protano wrote:
>
> Hello the u suggested it s for .net my code is for php but it s not 
> important, i think it will an similar solution to capture the soap 
> messages. U seems an expert adwords advice , so, can u send to me an 
> example to archieve my workflow? But first is it possible ? Thk for the 
> reply 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/acd99abb-103f-488d-8a64-6acb62ec7c4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: can i use any product account developer token for my test account

2017-02-15 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
Hi Subin, 

Once the initial signup for the AdWords API is completed, you will be 
issued a developer token with the test account access 
 level. This 
means that the developer token can only make AdWords API requests against 
test accounts.

You should use this developer token from the production account to make 
calls against a test account. However, the developer token need not be 
approved to use it against the test account and also there is no 
restriction in using it against any account. 

Please check the document 

 for 
more details. 
  
Thanks,
Sreelakshmi, AdWords API team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/d2e8675a-0b40-43d5-a914-4df138c2e6e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: InternalApiError.UNEXPECTED_INTERNAL_API_ERROR

2017-02-15 Thread 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum
Hi Sahil,

To be able to look further, could you please provide me with the SOAP XML 
request and response logs for the API call? Please click on *Reply 
privately to author *when responding. 

Regards,
Vishal, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/dbba87cc-cacb-44c5-bdf7-9d8285afc8da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Criteria Performance Report - no data for Videos

2017-02-15 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi, 

This campaign does not have any YOUTUBE_VIDEO or YOUTUBE_CHANNEL criteria. 
To get the performance for your video ads, you need to use Video 
Performance Report 
.
 
You can also you Campaign Performance Report 

 
and filter for results where AdvertisingChannelType is VIDEO. To target 
YouTube videos or channels you need to use AdGroupCriterionService 

 to 
add YouTubeVideo 

 or YouTubeChannel 

 criterion 
respectively. 

Regards,
Shwetha, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/c0badb31-c13f-422f-9572-4b7706b775e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: geo performance by ZIP_CODE?

2017-02-15 Thread Adam Haining
Got it, thanks.  I never noticed the Postal Code target types, very
helpful.  I appreciate the quick response!

#end
Best Regards,


Adam Haining

CTO

P: (801) 473-9220 <8014739220>





On Wed, Feb 15, 2017 at 1:32 PM, 'Vishal Vinayak (Adwords API Team)' via
AdWords API Forum  wrote:

> Hi Adam,
>
> There are various types of location targets available via AdWords API
> including but not limited to Borough, Canton, City, Region, State, Postal
> Code, Country etc. With AdWords API, for consistency purposes, you can
> target any location using the same logic as long as you know the criteria
> ID of that location. In short, criteria ID is a way to individually
> identify various location types.
>
> MostSpecificCriteriaId
> 
>  field in the Geo Performance Report would contain breakdown by the
> location criteria ID (and not zipcode) of the place where the impression
> occurred. Using LocationCriterionService
> ,
>  you can fetch the same information about a location criterion ID as is
> available in this table
> .
> In other words, if the criteria ID of the most specific location points to
> that of a zipcode, the *LocationName
> *
> field retrieved from the LocationCriterionService would contain that
> information. This example
> 
>  in
> java explains how to go about retrieving details of a location. Same
> example is available in other client libraries
>  as well.
>
> Hope this helps. Please revert in case you have other questions.
>
> Regards,
> Vishal, AdWords API Team
>
> --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and Google+:
> https://googleadsdeveloper.blogspot.com/
> https://plus.google.com/+GoogleAdsDevelopers/posts
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> You received this message because you are subscribed to the Google
> Groups "AdWords 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 Forum" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/adwords-api/igAdnBIeuoY/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/bd1b3a84-4912-4c25-b5d4-e730c732deae%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/CAMKYROKPcEAndKsSqDKc%3DfkfRom786yWvvxOxXgh-aUYiSHwjg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: ConversionTypeOwnerCustomerId Showing MCC Account

2017-02-15 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
Hi, 

The conversionTypeOwnerCustomerId 

 should 
have the account Id under which the conversion tracking was set up. If the 
conversion was set up at the MCC account level you should see the customer 
Id corresponding to the MCC account on the other hand if the conversion was 
set up at the child account level, you should see the customer Id 
corresponding to the child account. 

If you observe a different behavior, please* reply privately to author* and 
send me your MCC account Id and the SOAP logs (request and response) so 
that I can take a closer look.

Thanks,
Sreelakshmi, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/9360785e-8f28-41ff-9f0c-2cac66acad56%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


InternalApiError.UNEXPECTED_INTERNAL_API_ERROR

2017-02-15 Thread 'Sahil Girdhar' via AdWords API Forum
Hi, I am facing an InternalApiError.UNEXPECTED_INTERNAL_API_ERRO 
r
 
issue 


Traceback (most recent call last):
  File "new_test.py", line 59, in 
main(adwords_client, LABEL_ID)
  File "new_test.py", line 38, in main
page = campaign_service.get(selector)
  File "/Library/Python/2.7/site-packages/googleads/common.py", line 700, 
in MakeSoapRequest
*[_PackForSuds(arg, self.suds_client.factory) for arg in args])
  File "/Library/Python/2.7/site-packages/suds/client.py", line 521, in 
__call__
return client.invoke(args, kwargs)
  File "/Library/Python/2.7/site-packages/suds/client.py", line 581, in 
invoke
result = self.send(soapenv)
  File "/Library/Python/2.7/site-packages/suds/client.py", line 619, in send
description=tostr(e), original_soapenv=original_soapenv)
  File "/Library/Python/2.7/site-packages/suds/client.py", line 670, in 
process_reply
raise WebFault(fault, replyroot)
suds.WebFault: Server raised fault: 
'[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
com.google.ads.api.services.common.error.InternalApiError.(InternalApiErro]'



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/4e350574-017e-4703-a4b0-3867bd7becb5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


InternalApiError.UNEXPECTED_INTERNAL_API_ERROR

2017-02-15 Thread 'Sahil Girdhar' via AdWords API Forum
 File "new_test.py", line 38, in main
page = campaign_service.get(selector)
  File "/Library/Python/2.7/site-packages/googleads/common.py", line 700, 
in MakeSoapRequest
*[_PackForSuds(arg, self.suds_client.factory) for arg in args])
  File "/Library/Python/2.7/site-packages/suds/client.py", line 521, in 
__call__
return client.invoke(args, kwargs)
  File "/Library/Python/2.7/site-packages/suds/client.py", line 581, in 
invoke
result = self.send(soapenv)
  File "/Library/Python/2.7/site-packages/suds/client.py", line 619, in send
description=tostr(e), original_soapenv=original_soapenv)
  File "/Library/Python/2.7/site-packages/suds/client.py", line 670, in 
process_reply
raise WebFault(fault, replyroot)
suds.WebFault: Server raised fault: 
'[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
com.google.ads.api.services.common.error.InternalApiError.(InternalApiErro]'


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/afc856c4-eeec-4a7f-8d3a-b577d9d2b334%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: geo performance by ZIP_CODE?

2017-02-15 Thread 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum
Hi Adam,

There are various types of location targets available via AdWords API 
including but not limited to Borough, Canton, City, Region, State, Postal 
Code, Country etc. With AdWords API, for consistency purposes, you can 
target any location using the same logic as long as you know the criteria 
ID of that location. In short, criteria ID is a way to individually 
identify various location types. 

MostSpecificCriteriaId 

 field in the Geo Performance Report would contain breakdown by the 
location criteria ID (and not zipcode) of the place where the impression 
occurred. Using LocationCriterionService 
,
 
 you can fetch the same information about a location criterion ID as is 
available in this table 
. In 
other words, if the criteria ID of the most specific location points to 
that of a zipcode, the *LocationName 
*
 
field retrieved from the LocationCriterionService would contain that 
information. This example 

 in 
java explains how to go about retrieving details of a location. Same 
example is available in other client libraries 
 as well. 

Hope this helps. Please revert in case you have other questions. 

Regards,
Vishal, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/bd1b3a84-4912-4c25-b5d4-e730c732deae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How can I get developer token to test api in test account adwords?

2017-02-15 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi Subin,

A developer token can be used to target *any* AdWords account. You just 
need to generate the OAuth2 credentials 

 by 
logging in as the test manager account rather than the production manager 
account and use these credentials to make API requests against your test 
account. Please note that test and production accounts cannot interact in 
any way; you cannot use a test account under your existing production 
account. 

Regards,
Shwetha, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/4311ee31-e761-4e76-9950-b153d40a9cee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Criteria Performance Report - no data for Videos

2017-02-15 Thread AdWordsApiUser
*Shwetha, sorry for the typo.

On Wednesday, February 15, 2017 at 8:11:17 PM UTC+1, AdWordsApiUser wrote:
>
> Thanks Shweta for your reply! Yes, we have Video Ads running in this 
> campaign. The campaign Id is 753924472. Your help is much appreciated! :-)
>
> Regards,
> MG
>
> On Wednesday, February 15, 2017 at 6:39:42 PM UTC+1, Shwetha Vastrad 
> (AdWords API Team) wrote:
>>
>> Hi,
>>
>> Have you added YOUTUBE_VIDEO or YOUTUBE_CHANNEL type placements to target 
>> your video Campaigns? Could you provide your clientCustomerId or the 
>> CampaignId so I can take a look?
>>
>> Regards,
>> Shwetha, AdWords API Team.
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/1b880207-a2c7-4b07-bc8b-2a970ce23a7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Criteria Performance Report - no data for Videos

2017-02-15 Thread AdWordsApiUser
Thanks Shweta for your reply! Yes, we have Video Ads running in this 
campaign. The campaign Id is 753924472. Your help is much appreciated! :-)

Regards,
MG

On Wednesday, February 15, 2017 at 6:39:42 PM UTC+1, Shwetha Vastrad 
(AdWords API Team) wrote:
>
> Hi,
>
> Have you added YOUTUBE_VIDEO or YOUTUBE_CHANNEL type placements to target 
> your video Campaigns? Could you provide your clientCustomerId or the 
> CampaignId so I can take a look?
>
> Regards,
> Shwetha, AdWords API Team.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/3799b9f8-cd56-4fd7-a1a8-f5dc5d5e8f61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Click report by minute

2017-02-15 Thread 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum
Hi,

When a click is made on an ad, a Google click ID (GCLID) associated with 
each click is generated. This information is captured and made available 
via the Click Performance Report 
.
 
Unfortunately, cost of each click is not available in the Click Performance 
Report. 

Regards,
Vishal, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/19d4081f-05e1-440d-878f-9b6b3e7a622e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [AdGroupCriterionError.CANNOT_TARGET_AND_EXCLUDE @ operations[0].operand]

2017-02-15 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
Hi, 

As pointed out in the earlier post, conflicting criterion setting is 
causing this error. You could try the AdGroupCriterionService.get() 

 on 
that AdGroup and check for the criterionUse 

 to 
see if the targeting that you are trying to set is already set as negative 
criterion. If so, the workaround would be to remove that and add the right 
targeting. 

You could check our sample 

 in 
Java which adds both biddable and negative criterion. The samples in other 
client libraries can be found here 
 aswell. 

Please let me know if you have any additional questions. 

Thanks,
Sreelakshmi, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/c6a26282-3c90-4239-be70-5054cf3b379e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


can i use any product account developer token for my test account

2017-02-15 Thread SUBIN P VASU
Hi,
can i use any product account developer token for my test account??

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/d2100dc9-cc23-4d63-9888-35c772acde17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How can I get developer token to test api in test account adwords?

2017-02-15 Thread SUBIN P VASU
I have test manager account and production manager account. How can I 
connect these through API? ie I need to connect my test account using  
product account developer token. How can it be implemented?


On Wednesday, 18 January 2017 19:31:04 UTC+5:30, samsonph...@gmail.com 
wrote:
>
> Currently I am planning to test adwords API with test account. How can I 
> get developer token? 
> For developer token Do I need to create production manager account with 
> same email id?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/fa596369-f746-4f03-a7b7-d2e3712c61eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Test Manager Account has no Developer token

2017-02-15 Thread SUBIN P VASU
Hi,
I have created a test account using the email : mct.subinpv...@gmail.com. 
And I couldn't find the developer token in the account.
I have a production account using the email : adwords.subinpv...@gmail.com 
and it has the developer token(Pending). Any way please help me to get the 
token for the test account.

Thanks in advance.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/a38d1097-f046-4d90-aa44-d9080eaa900c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


ConversionTypeOwnerCustomerId Showing MCC Account

2017-02-15 Thread Jon Skeen
Hello,

I am trying to come up with a list of managed customers who are using 
"calls from ads" conversion tracking, specifically clients who have their 
own conversion tracking set up. Reading through the API documentation, I am 
under the impression that the conversionTypeOwnerCustomerId field should be 
populated with the account id under which the conversion tracking was set 
up. Unfortunately, all results from ConversionTrackerService.Get are 
showing the MCC account id instead of individual client ids. Am I 
misunderstanding the intent of the conversionTypeOwnerCustomId field and if 
so, is there another way to distinguish the source of the calls from ads 
conversion tracker? 

Thanks!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/a3edb342-f959-4b96-8f6c-8dafc2c38001%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Criteria Performance Report - no data for Videos

2017-02-15 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi,

Have you added YOUTUBE_VIDEO or YOUTUBE_CHANNEL type placements to target 
your video Campaigns? Could you provide your clientCustomerId or the 
CampaignId so I can take a look?

Regards,
Shwetha, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/0e096d75-3114-4062-8514-eb6c169ded4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to we create ads?

2017-02-15 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi,

The OperationAccessDenied.ACTION_NOT_PERMITTED 

 error 
occurs when you don't have the authorization to invoke a service's method. 
This will be because you are using the credentials associated with a 
read-only login to create ads. You'll need to provide either standard or 
administrative access to this login to be able to make changes to your 
account. This article  lists 
various features available for each access level. 

Regards,
Shwetha, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/d193fdf7-a47b-4bf7-aba6-516a5c6fb649%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Customer can not create report of a selected type.. (Error: ReportDefinitionError.CUSTOMER_SERVING_TYPE_REPORT_MISMATCH, FieldPath: selector.reportDefinition, Trigger: )

2017-02-15 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi Vinayaka,

It looks like you are trying to download a report from a manager account. 
AdWords API reports can only be obtained for client (non-manager) accounts. 
You can use ManagedCustomerService 

 to 
get account information, and if ManagedCustomer.canManageClients 

 is 
true, then the account is a manager account. This way you can ensure that 
the clientCustomerId in the reporting request corresponds to a non-manager 
account. 

Regards,
Shwetha, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/5731210e-986a-4630-b07a-a38d74e53365%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: geo performance by ZIP_CODE?

2017-02-15 Thread Adam Haining
Can you provide some more details on this?  I also want to be able to pull 
the zip code details, but I do not see how this will all work.  I don't 
necessarily use zip codes as a targeting criterion, I just want to know the 
performance data at the zip code level.

On Monday, February 6, 2017 at 2:05:43 PM UTC-7, Vishal Vinayak (Adwords 
API Team) wrote:
>
> Hi Jay,
>
> You can use the field MostSpecificCriteriaId 
> 
>  in 
> the Geo Performance Report to fetch the location criterion associated with 
> the impression. If you use zip codes as a targeting criterion for 
> geographical 
> targeting 
> , 
> you can use the Criteria Performance Report and filter on the CriteriaType 
> 
>  as LOCATION.
>
> Regards,
> Vishal Vinayak, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/cfbbce18-14ac-4a7c-910f-f4c789c94a97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Revoke OAuth token using API

2017-02-15 Thread Nick Harris
Same issue here too, but had to modify Aine's method a bit to get it to 
work:
Add library to composer:
"google/apiclient": "^2.0"

Code:
$client = new \Google_Client();
$client->setAuthConfig('PATH_TO_JSON_FILE')); // JSON file in 
Google dev console under credentials
$client->fetchAccessTokenWithRefreshToken($refreshToken); //
$revoke = $client->revokeToken(); // returns true if it worked



On Tuesday, May 31, 2016 at 8:21:48 AM UTC-7, Aine Hickey wrote:
>
> Thanks Tomas. I had the same issue, but the code is slightly different.
> You're answer set me in the right direction.
>
> For anyone else who has this problem, this is what I did.
>
> Add library to composer:
> "google/apiclient": "1.0.*@beta"
>
> Code:
> $client = new \Google_Client();
> $client->setApplicationName('xxx');
> $client->setDeveloperKey('xxx');
>
> $oauth2 = new \Google_Auth_OAuth2($client);
> $result = $oauth2->revokeToken('xxx'); // Access or refresh token
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/4e5b4f62-174c-4508-ab4e-604cb5d1afd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Click report by minute

2017-02-15 Thread QDQ Media
Hello, Can I obtain a report click and get the cpc for each click, not de 
average cpc, for example report click by minute

Thanks!!!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/b41eb15b-0ae8-4a72-a9c6-d3c60477c11a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to we create ads?

2017-02-15 Thread lars
Hi,

We currently use the Google Adwords API in production to get impressions 
and clicks from different ads. That's great, but now we also need to able 
to create new ads.

When we try to create an ad we get the following error:

AdWordsApiException: One or more AdWords API errors have occurred. 
\r\n\r\nOperationAccessDeniedReason.ACTION_NOT_PERMITTED. (Error: 
OperationAccessDenied.ACTION_NOT_PERMITTED, FieldPath: , Trigger:

[10:27]  
class com.google.ads.api.serviceimpls.campaignmgmt.ad.adgroupad.MutateAction

[10:27]  

--

How do we fix this? Do we need to fill out a new application?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/8056d890-635f-4d38-a932-62a9e3be8fd3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Customer can not create report of a selected type.. (Error: ReportDefinitionError.CUSTOMER_SERVING_TYPE_REPORT_MISMATCH, FieldPath: selector.reportDefinition, Trigger: )

2017-02-15 Thread Vinayaka N
I have written code for getting reports, but I am getting exception  * Customer 
can not create report of a selected type.. (Error: 
ReportDefinitionError.CUSTOMER_SERVING_TYPE_REPORT_MISMATCH, FieldPath: 
selector.reportDefinition, Trigger: ). *

code is below

 ReportDefinition definition = new ReportDefinition()
{
reportName = "Last 7 days CRITERIA_PERFORMANCE_REPORT",
reportType = 
ReportDefinitionReportType.CRITERIA_PERFORMANCE_REPORT,
downloadFormat = DownloadFormat.XML,
dateRangeType = ReportDefinitionDateRangeType.LAST_7_DAYS,

selector = new Selector()
{
fields = new string[] 
{"CampaignId", "AdGroupId", "Id", "CriteriaType", 
"Criteria",
"FinalUrls", "Clicks", "Impressions", "Cost"
},
predicates = new Predicate[] 
{
Predicate.In("Status", new string[] {"ENABLED", 
"PAUSED"})
}
},
};

(user.Config as AdWordsAppConfig).IncludeZeroImpressions = true;

string filepath = Server.MapPath("data.xml");
try
{
ReportUtilities utilities = new 
ReportUtilities(user,"v201609",definition);
using (ReportResponse response = utilities.GetResponse())
{
response.Save(filepath);
}
Response.Write("Report downloaded"+ filepath);
}
catch(Exception ex)
{
string a = ex.Message;
}


I am not able to understand where I am going wrong please help me.

Any help appreciated.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/fc8c9ccb-0472-4af4-a0b2-b74ae17cec63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [AdGroupCriterionError.CANNOT_TARGET_AND_EXCLUDE @ operations[0].operand]

2017-02-15 Thread AdWordsApiUser
Maybe you've excluded one of them explicitly using 
"NegativeAdGroupCriterion" or at the campaign level? This error only shows 
up in such a case.

On Wednesday, February 15, 2017 at 12:26:34 PM UTC+1, 하진호 wrote:
>
> Hi, there
>
> I tried to add age and gender in an adgroup, but i get following error 
> message: [AdGroupCriterionError.CANNOT_TARGET_AND_EXCLUDE @ 
> operations[0].operand].
> I want to set both gender and age in an adgroup at once.
>
> my source example : 
>
> [
>   {
> "adGroupId": 38658396945,
> "ageIds": [
>   503001
> ],
> "genderIds": [
>   11
> ]
>   }
> ]
>
>
> demographicList.stream().forEach(i -> {
>
> i.getGenderIds().stream().forEach(genderId -> {
> Gender gender = new Gender();
> gender.setId(genderId);
> BiddableAdGroupCriterion genderBiddableAdGroupCriterion = new 
> BiddableAdGroupCriterion();
> genderBiddableAdGroupCriterion.setAdGroupId(i.getAdGroupId());
> genderBiddableAdGroupCriterion.setCriterion(gender);
>
> AdGroupCriterionOperation genderAdGroupCriterionOperation = new 
> AdGroupCriterionOperation();
> 
> genderAdGroupCriterionOperation.setOperand(genderBiddableAdGroupCriterion);
> genderAdGroupCriterionOperation.setOperator(Operator.ADD);
>
> criterionOperationList.add(genderAdGroupCriterionOperation);
> });
>
> i.getAgeIds().stream().forEach(ageId -> {
> AgeRange ageRange = new AgeRange();
> ageRange.setId(ageId);
> BiddableAdGroupCriterion ageBiddableAdGroupCriterion = new 
> BiddableAdGroupCriterion();
> ageBiddableAdGroupCriterion.setAdGroupId(i.getAdGroupId());
> ageBiddableAdGroupCriterion.setCriterion(ageRange);
>
> AdGroupCriterionOperation adGroupCriterionOperation = new 
> AdGroupCriterionOperation();
> adGroupCriterionOperation.setOperand(ageBiddableAdGroupCriterion);
> adGroupCriterionOperation.setOperator(Operator.ADD);
>
> criterionOperationList.add(adGroupCriterionOperation);
> });
> });
>
> AdGroupCriterionReturnValue result = adGroupCriterionService
> .mutate(criterionOperationList.toArray(new 
> AdGroupCriterionOperation[criterionOperationList.size()]));
>
>
> Thank you
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/711b-35bf-4888-9bce-b9321e371bf8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Criteria Performance Report - no data for Videos

2017-02-15 Thread AdWordsApiUser
The documentation for Criteria Performance Report mentions that the enum 
for CriteriaType may take on values YOUTUBE_VIDEO as well as YOUTUBE_CHANNEL. 
However, for a youtube campaign with over 10K impressions every 
day,YOUTUBE_VIDEO and YOUTUBE_CHANNEL seem to be missing alltogether. In 
fact, all the rows in the report for the youtube campaign report 0 
impressions. The rows for the youtube campaign mention criteria type AGE, 
GENDER and a few others, but not YOUTUBE_VIDEO or YOUTUBE_CHANNEL.

Query:

SELECT 
Id,AdGroupId,AdGroupName,CampaignId,CampaignName,Criteria,CriteriaType,Impressions
 
FROM CRITERIA_PERFORMANCE_REPORT WHERE Status IN ['ENABLED','PAUSED'] 
DURING 20170208,20170214

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/2d3a7597-533d-4843-8ed6-1e72fa1e6ff5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Issues with BatchJobService - jobs remain stuck

2017-02-15 Thread 'Nadine Sundquist (AdWords API Team)' via AdWords API Forum
Hi Stefan,

Thanks for reporting this. I personally experienced some longer than usual 
running batch jobs last night as well. We're looking into what caused this 
last spike in execution time.

Cheers,
Nadine, AdWords API Team

On Wednesday, February 15, 2017 at 5:04:20 AM UTC-5, Stefan Kleine 
Stegemann wrote:
>
> Hi,
>
> sorry for hijacking this thread but since yesterday morning, we also 
> started to have significant troubles with batch job service. Jobs remained 
> active for a very long time. The following jobs have been started yesterday 
> morning, german time (see start time is noted for each job) and were still 
> active this morning:
>
> Job 445516765 | 2017-02-14T03:34
> Job 445553000 | 2017-02-14T03:20
> Job 445532407 | 2017-02-14T03:58
> Job 445532515 | 2017-02-14T03:58
> Job 445693959 | 2017-02-14T03:58
> Job 445694061 | 2017-02-14T03:59
> Job 445694595 | 2017-02-14T03:59
>
> We've canceled the jobs this morning (after they are still reported to be 
> active, how can that be?), but now they are in canceling state for about an 
> hour (at the time of this writing). Furthermore, the situation got worse 
> this morning, with 30 batch jobs being active for a couple of hours now. 
> The ids of these jobs are attached to the end of this post. We will cancel 
> these jobs as well because we do not expect them to finish, based on 
> yesterday's experience.
>
> As an additional information, the problems seem to affect accounts with 
> campaigns with a large to huge number or product partitions / keywords. The 
> problematic jobs were "spreaded" over three adwords accounts yesterday and 
> three accounts today. Two of the accounts affected yesterday are also 
> affected today. We do use these batch jobs to set cpc bids for keywords and 
> product partitions and use a maximum of 40.000 operations per job. We 
> experimented with this number in the past and found that to be a "suitable" 
> balance between performance and reliability of batch jobs. All jobs contain 
> only one type of operation. While multiple jobs might affect the same 
> campaign / adgroups, they do not affect the same keywords / product 
> partitions. I was told on the past API workshop that this is ok and will 
> not result in concurrency issues. In addition to concrete information on 
> the issue, we would be happy to know if it makes sense to "play" with the 
> limit of 40.000 operations per job again.
>
> As a general note, batch job continously tend to keep us busy since we 
> switched to them last year. The runtime performance seems to be rather 
> unpredictable. Especially on test accounts, batch jobs can run for a very 
> long time (up to 30 minutes) which is painful if you want to run automated 
> tests. Combined with the unclear advise on the number of operations to put 
> in a batch job and best practices in general, that leaves us with a very 
> uncertain feeling. Given the reliabilty issues we experienced in the past 
> half year, we're currently thinking about ditching batch jobs entirely and 
> implement batching on our site which would give us at least more control. 
> We understand that the intend of batch jobs is like "fire and forget" 
> (yeah, not really forget but check results etc.), we offload operations to 
> AdWords and it takes care of it. Currently its more like "fire and pray". 
> While we do not want to bring back the past, but we never had such troubles 
> with mutate job service. I apologize for this bit of ranting, but it's 
> constantly keeping us busy for a while now.
>
> Finally, here are the job ids of the still-active (soon to be canceled) 
> jobs from this morning.
>
> 445954525
> 445954540
> 445989185
> 446102085
> 446102088
> 445952002
> 445986527
> 445986596
> 445986662
> 445986857
> 445987025
> 445987106
> 445987562
> 445987577
> 445987715
> 446107815
> 446107821
> 446108097
> 446108442
> 446108472
> 446108553
> 446108598
> 446108796
> 446108910
> 446108958
> 45948708
> 445983389
> 445983824
> 446105442
> 446105460
>
> Thanks for taking care of this and regards,
> Stefan
>
>
> Am Montag, 13. Februar 2017 22:08:05 UTC+1 schrieb AdWordsApiUser:
>>
>> Thanks Nadine - appreciate your quick reply. We'll keep an eye out and 
>> let you know if things get out of hand.
>>
>> On Monday, February 13, 2017 at 6:19:50 PM UTC+1, Nadine Sundquist 
>> (AdWords API Team) wrote:
>>>
>>> Hi MG,
>>>
>>> Thanks for sending over the batch job IDs. I took a look at the time it 
>>> took for the jobs to run for the slow running jobs. I didn't see any that 
>>> exceeded 15 minutes and most were completing within 5 minutes. There is a 
>>> bit of load balancing going on with a lot of job requests, so it's expected 
>>> that while some jobs may only take 2 minutes, there will be a few that may 
>>> exceed 10 minutes. Luckily, the jobs don't appear to be getting stuck 
>>> indefinitely, and they're not hanging for hours on end. I'll keep an eye on 
>>> things as I did see a spike in processing time this morning, but 

[AdGroupCriterionError.CANNOT_TARGET_AND_EXCLUDE @ operations[0].operand]

2017-02-15 Thread 하진호
Hi, there

I tried to add age and gender in an adgroup, but i get following error 
message: [AdGroupCriterionError.CANNOT_TARGET_AND_EXCLUDE @ 
operations[0].operand].
I want to set both gender and age in an adgroup at once.

my source example : 

[
  {
"adGroupId": 38658396945,
"ageIds": [
  503001
],
"genderIds": [
  11
]
  }
]


demographicList.stream().forEach(i -> {

i.getGenderIds().stream().forEach(genderId -> {
Gender gender = new Gender();
gender.setId(genderId);
BiddableAdGroupCriterion genderBiddableAdGroupCriterion = new 
BiddableAdGroupCriterion();
genderBiddableAdGroupCriterion.setAdGroupId(i.getAdGroupId());
genderBiddableAdGroupCriterion.setCriterion(gender);

AdGroupCriterionOperation genderAdGroupCriterionOperation = new 
AdGroupCriterionOperation();

genderAdGroupCriterionOperation.setOperand(genderBiddableAdGroupCriterion);
genderAdGroupCriterionOperation.setOperator(Operator.ADD);

criterionOperationList.add(genderAdGroupCriterionOperation);
});

i.getAgeIds().stream().forEach(ageId -> {
AgeRange ageRange = new AgeRange();
ageRange.setId(ageId);
BiddableAdGroupCriterion ageBiddableAdGroupCriterion = new 
BiddableAdGroupCriterion();
ageBiddableAdGroupCriterion.setAdGroupId(i.getAdGroupId());
ageBiddableAdGroupCriterion.setCriterion(ageRange);

AdGroupCriterionOperation adGroupCriterionOperation = new 
AdGroupCriterionOperation();
adGroupCriterionOperation.setOperand(ageBiddableAdGroupCriterion);
adGroupCriterionOperation.setOperator(Operator.ADD);

criterionOperationList.add(adGroupCriterionOperation);
});
});

AdGroupCriterionReturnValue result = adGroupCriterionService
.mutate(criterionOperationList.toArray(new 
AdGroupCriterionOperation[criterionOperationList.size()]));


Thank you

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/9a9eca49-64a8-47a0-9529-c054b095f01d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: API V201607 Cross Client Report for click performance and MCC with thousands of sub-accounts

2017-02-15 Thread Zweitze
You can't derive the proper account from the GCLID alone.

Can you get more info where the GCLID came from? For instance, if you know 
the website domain where it was issued you probably know which account was 
involved. And if the accounts advertise to multiple websites, changing all 
the time, you could some software that regularly retrieves all final URLs 
from all accounts, then stores the website domains in a local database.
Then, when you are asked about a website/GCLID combination, lookup the 
website in your local database, see which account(s) that website is 
related too, then try those accounts for the GCLID.





On Tuesday, February 14, 2017 at 6:58:30 PM UTC+1, Chris Hahn wrote:
>
> Hello,
>
> Is there any way to determine which sub-account from an MCC a particular 
> GCLID belongs to other than looping through the sub-accounts and checking 
> them one at a time? I've seen some things in help topics about cross client 
> reporting but that was from a few years ago and I can't find solid examples 
> anywhere. It seems like the click performance report still has a property 
> called "external customer id" which makes me think something like this is 
> possible, but I can't figure it out.
>
> When I try to request information on a batch of GCLIDs for the MCC 
> customer client ID, I get the following error:
>
> ReportDefinitionError.CUSTOMER_SERVING_TYPE_REPORT_MISMATCH
>
> Any direction or advice would be greatly appreciated. Thanks!
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/3325dd45-e3f1-4888-bc17-7b1f15ffefc1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Issues with BatchJobService - jobs remain stuck

2017-02-15 Thread Stefan Kleine Stegemann
Hi,

sorry for hijacking this thread but since yesterday morning, we also 
started to have significant troubles with batch job service. Jobs remained 
active for a very long time. The following jobs have been started yesterday 
morning, german time (see start time is noted for each job) and were still 
active this morning:

Job 445516765 | 2017-02-14T03:34
Job 445553000 | 2017-02-14T03:20
Job 445532407 | 2017-02-14T03:58
Job 445532515 | 2017-02-14T03:58
Job 445693959 | 2017-02-14T03:58
Job 445694061 | 2017-02-14T03:59
Job 445694595 | 2017-02-14T03:59

We've canceled the jobs this morning (after they are still reported to be 
active, how can that be?), but now they are in canceling state for about an 
hour (at the time of this writing). Furthermore, the situation got worse 
this morning, with 30 batch jobs being active for a couple of hours now. 
The ids of these jobs are attached to the end of this post. We will cancel 
these jobs as well because we do not expect them to finish, based on 
yesterday's experience.

As an additional information, the problems seem to affect accounts with 
campaigns with a large to huge number or product partitions / keywords. The 
problematic jobs were "spreaded" over three adwords accounts yesterday and 
three accounts today. Two of the accounts affected yesterday are also 
affected today. We do use these batch jobs to set cpc bids for keywords and 
product partitions and use a maximum of 40.000 operations per job. We 
experimented with this number in the past and found that to be a "suitable" 
balance between performance and reliability of batch jobs. All jobs contain 
only one type of operation. While multiple jobs might affect the same 
campaign / adgroups, they do not affect the same keywords / product 
partitions. I was told on the past API workshop that this is ok and will 
not result in concurrency issues. In addition to concrete information on 
the issue, we would be happy to know if it makes sense to "play" with the 
limit of 40.000 operations per job again.

As a general note, batch job continously tend to keep us busy since we 
switched to them last year. The runtime performance seems to be rather 
unpredictable. Especially on test accounts, batch jobs can run for a very 
long time (up to 30 minutes) which is painful if you want to run automated 
tests. Combined with the unclear advise on the number of operations to put 
in a batch job and best practices in general, that leaves us with a very 
uncertain feeling. Given the reliabilty issues we experienced in the past 
half year, we're currently thinking about ditching batch jobs entirely and 
implement batching on our site which would give us at least more control. 
We understand that the intend of batch jobs is like "fire and forget" 
(yeah, not really forget but check results etc.), we offload operations to 
AdWords and it takes care of it. Currently its more like "fire and pray". 
While we do not want to bring back the past, but we never had such troubles 
with mutate job service. I apologize for this bit of ranting, but it's 
constantly keeping us busy for a while now.

Finally, here are the job ids of the still-active (soon to be canceled) 
jobs from this morning.

445954525
445954540
445989185
446102085
446102088
445952002
445986527
445986596
445986662
445986857
445987025
445987106
445987562
445987577
445987715
446107815
446107821
446108097
446108442
446108472
446108553
446108598
446108796
446108910
446108958
45948708
445983389
445983824
446105442
446105460

Thanks for taking care of this and regards,
Stefan


Am Montag, 13. Februar 2017 22:08:05 UTC+1 schrieb AdWordsApiUser:
>
> Thanks Nadine - appreciate your quick reply. We'll keep an eye out and let 
> you know if things get out of hand.
>
> On Monday, February 13, 2017 at 6:19:50 PM UTC+1, Nadine Sundquist 
> (AdWords API Team) wrote:
>>
>> Hi MG,
>>
>> Thanks for sending over the batch job IDs. I took a look at the time it 
>> took for the jobs to run for the slow running jobs. I didn't see any that 
>> exceeded 15 minutes and most were completing within 5 minutes. There is a 
>> bit of load balancing going on with a lot of job requests, so it's expected 
>> that while some jobs may only take 2 minutes, there will be a few that may 
>> exceed 10 minutes. Luckily, the jobs don't appear to be getting stuck 
>> indefinitely, and they're not hanging for hours on end. I'll keep an eye on 
>> things as I did see a spike in processing time this morning, but it looks 
>> like things are returning to normal again. Please reach out if you see the 
>> times increasing even more.
>>
>> Thanks again,
>> Nadine, AdWords API Team
>>
>> On Monday, February 13, 2017 at 9:39:03 AM UTC-5, AdWordsApiUser wrote:
>>>
>>> Hello team,
>>>
>>> The issue seems to happen again, though not as bad as last time, so I 
>>> thought I'd let you know before it becomes worse. Some jobs are taking a 
>>> long time to process, while others process very fast. Last time it 
>>> happened,