Data not retrived through Ad Group Reach Frequency in v201206

2012-10-18 Thread Smita


Hello Adwords Support, 

We are developing a support to have the reach frequecy report included in 
v201206. 
https://developers.google.com/adwords/api/docs/appendix/reports#ad-group-reach-frequency
But the report returned is not giving any data except the headers.Tried it 
with both methods report service and AWQL request. 
Please have a look at the calls below and let me know if some changes 
required to get the correct data?

https://adwords.google.com/api/adwords/cm/v201206";>

AdGroupId
AdGroupName
AdGroupStatus
CampaignId
CampaignName
CampaignStatus
ReachFrequency
ReachFrequencyClicks
ReachFrequencyConv
ReachFrequencyConvRate
ReachFrequencyCtr
ReachFrequencyDate
UniqueUserCountAsLong

ADGROUP_REACH_FREQUENCY_REPORT
ADGROUP_REACH_FREQUENCY_REPORT
LAST_7_DAYS
GZIPPED_XML


*AWQL request as 
*select
  AccountId
, AdGroupId
, AdGroupName
, AdGroupStatus
, CampaignId
, CampaignName
, CampaignStatus
, ReachFrequency
, ReachFrequencyClicks
, ReachFrequencyConv
, ReachFrequencyConvRate
, ReachFrequencyCtr
, ReachFrequencyDate
from ADGROUP_REACH_FREQUENCY_REPORT
during LAST_7_DAYS

 

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: ADGROUP_REACH_FREQUENCY_REPORT doesn't return any records yet?

2012-10-18 Thread dkasak
.

On Thursday, 18 October 2012 10:02:44 UTC+11, dkasak wrote:
>
> .
>
> On Tuesday, 16 October 2012 15:05:28 UTC+11, dkasak wrote:
>>
>> .
>>
>> On Monday, 15 October 2012 10:44:55 UTC+11, dkasak wrote:
>>>
>>> .
>>>
>>> On Friday, 12 October 2012 11:15:02 UTC+11, dkasak wrote:

 .

 On Thursday, 11 October 2012 12:08:12 UTC+11, dkasak wrote:
>
> Yo! Google! Anyone home? I assume it's a known issue and you'll 
> respond "all in good time"?
>
> On Wednesday, 10 October 2012 12:47:47 UTC+11, dkasak wrote:
>>
>> 
>>
>> On Tuesday, October 9, 2012 3:29:34 PM UTC+11, dkasak wrote:
>>>
>>> Hmmm.
>>>
>>> OK Jayshree. Thanks for responding, but in all honesty, you're not 
>>> helping. Please see the response I got back ( above ). For us, at least 
>>> for 
>>> certain accounts ( which have reporting data for the given date range 
>>> ), 
>>> we're not getting any data. It's great that you're getting data, but 
>>> it's 
>>> not explaining what's happening in our reports.
>>>
>>> Can someone from *Google* please respond on this issue?
>>>
>>> Dan
>>>
>>> On Friday, 5 October 2012 21:55:29 UTC+10, jayshree bhongle wrote:


 Have a look at this file,this  are the stats i got by running  the 
 awql query i mentioned previously

 On Fri, Oct 5, 2012 at 12:12 PM, dkasak >>> > wrote:

> I spent most of the day rewiring our code to make AWQL requests 
> for this report. This doesn't return any records either; just an XML 
> with 
> field headers.
>
> Now ... can someone please comment *definitively* on whether this 
> report is supposed to work or not?
>
> ---
>
> AWQL:
>
> select
>   AccountId
> , AdGroupId
> , AdGroupName
> , AdGroupStatus
> , CampaignId
> , CampaignName
> , CampaignStatus
> , ReachFrequency
> , ReachFrequencyClicks
> , ReachFrequencyConv
> , ReachFrequencyConvRate
> , ReachFrequencyCtr
> , ReachFrequencyDate
> from ADGROUP_REACH_FREQUENCY_REPORT
> during LAST_7_DAYS
>
> Report XML returned:
>
>  standalone='yes'?> name='ADGROUP_REACH_FREQUENCY_REPORT'/> name='adGroup' 
> display='Ad group'/> name='campaign' display='Campaign'/> display='Campaign state'/> display='Frequency'/> name='conv' display='Conv.'/> display='Day'/>
>
> Dan
>
> On Thursday, 4 October 2012 21:38:21 UTC+10, jayshree bhongle 
> wrote:
>
>> Hi,
>> This report works.I have used this report and it gives me correct 
>> data .I have tested it for the fields which you have specified.But 
>> instead 
>> of using adhoc reports i use awql queries.
>> The query which gets me this data is as follows:-
>> $reportDefinition = "SELECT  AdGroupId,AdGroupName,**
>> AdGroupStatus,CampaignId,**CampaignName,CampaignStatus,**
>> ReachFrequency,**ReachFrequencyClicks,**ReachFrequencyConv,**
>> ReachFrequencyConvRate,**ReachFrequencyCtr,**ReachFrequencyDate,*
>> *UniqueUserCountAsLong   FROM ADGROUP_REACH_FREQUENCY_**REPORT  
>> DURING LAST_7_DAYS";
>>
>>
>>
>> On Thu, Oct 4, 2012 at 7:26 AM, dkasak <
>> daniel...@247realmedia.com**> wrote:
>>
>>>  Hi.
>>>
>>> We noticed you have added an ADGROUP_REACH_FREQUENCY_REPORT 
>>> report type. We'd like to use this data. When I create a report 
>>> request:
>>>
>>> https://adwords.google.**
>>> com/api/adwords/cm/v201206
>>> ">
>>> 
>>> AdGroupId
>>> AdGroupName
>>> AdGroupStatus
>>> CampaignId
>>> CampaignName
>>> CampaignStatus
>>> ReachFrequency
>>> ReachFrequencyClicks
>>> ReachFrequencyConv
>>> **ReachFrequencyConvRate
>>> ReachFrequencyCtr
>>> ReachFrequencyDate
>>> UniqueUserCountAsLong<**/fields>
>>> 
>>> ADGROUP_REACH_**FREQUENCY_REPORT
>>> ADGROUP_REACH_**FREQUENCY_REPORT
>>> LAST_7_DAYS
>>> GZIPPED_XML
>>> 
>>>
>>>  ... I get a gzipped XML, but it only contains headers; no rows.
>>>
>>> Is this report not working yet?
>>>
>>> Dan
>>>
>>> -- 
>>> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~**=~=~=~=~=~=~=~=~=~
>>> Also find us on our b

Re: CriterionError.INVALID_CRITERION_ID on setting location->id on v201209 in sandbox

2012-10-18 Thread Andrezza
Danial, I'm using the lastest adwords api v201209 with the java client 
software and I have the same problem.

The services are returning this error randomly and we are using the 
production environment.

Andrezza

Em quinta-feira, 11 de outubro de 2012 09h30min00s UTC-3, Danial Klimkin 
escreveu:
>
> Hello Patrick,
>
>
> The sandbox environment is good for testing only and all data is 
> generated. The services can return zeroes, random values or an error, 
> depending on service.
>
>
> -Danial, AdWords API Team.
>
>
> On Tuesday, October 9, 2012 1:07:09 PM UTC+4, Patrick Fischer wrote:
>>
>> Hi,
>>
>> I'm using the lastest adwords api v201209 with the php client software.
>>
>> Using the same code in sandbox instead of the production server fails 
>> with the following message: Fatal error: Uncaught SoapFault exception: 
>> [soap:Server] [CriterionError.INVALID_CRITERION_ID @ 
>> selector.searchParameters[2].locations[0]; trigger:'2276']
>>
>> In v201206 it still works in production and also in sandbox.
>>
>> Greetings
>>
>> $selector = new TargetingIdeaSelector();
>> $selector->requestType = 'STATS';
>> $selector->ideaType = 'KEYWORD';
>> $selector->requestedAttributeTypes = array('KEYWORD_TEXT', 'COMPETITION', 
>> 'SEARCH_VOLUME');
>> $selector->localeCode = 'de_DE';
>> $selector->currencyCode = 'EUR';
>>
>> $paging = new Paging();
>> $paging->startIndex = 0;
>> $paging->numberResults = 500;
>> $selector->paging = $paging;
>>
>> $relatedToQuerySearchParameter = new RelatedToQuerySearchParameter();
>> $relatedToQuerySearchParameter->queries = $kwList;
>>
>> $location = new Location();
>> $location->id = 2276; //2040
>>
>> $locationSearchParameter = new LocationSearchParameter();
>> $locationSearchParameter->locations = array( $location );
>>
>> $language = new Language();
>> $language->id = 1001;
>>
>> $languageSearchParameter = new LanguageSearchParameter();
>> $languageSearchParameter->languages = array( $language );
>>
>> $selector->searchParameters = 
>> array($relatedToQuerySearchParameter,$locationSearchParameter,$languageSearchParameter);
>>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: Java v201209 reporting: heavier on the CPU?

2012-10-18 Thread Chris
Guys? Any comments on what has been said here?

On Wednesday, 17 October 2012 14:05:18 UTC-5, Chris wrote:
>
> A bug that results in significant increase in memory and CPU usage is 
> somewhat concerning, especially with the sunset of the v201109 API fast 
> approaching. A response from the AdWords API team on this would be much 
> appreciated.
>
> Cheers
>
> On Wednesday, 17 October 2012 13:10:31 UTC-5, j.e.frank wrote:
>>
>> Yes.  All I care about is whether the account had any activity (i.e. 
>> impressions) over a given date range, so an empty report means that it's 
>> not active, for my purposes.  I don't care if the account is "active" in 
>> the sense of being available to run.
>>
>> On Wednesday, October 17, 2012 12:09:30 PM UTC-4, Oliver wrote:
>>>
>>> Thanks for sharing such a great optimization tip.
>>>
>>> Aside from the performance issue, I am curious to know how your're 
>>> handling the account reports when there are no impressions.  There is a 
>>> known bug with the Account Performance Report whereby it comes back 
>>> completely empty if there is no impression data.  Are you parsing an empty 
>>> report as non-active account?
>>>
>>> Oliver
>>>
>>>
>>> On Wednesday, October 17, 2012 3:13:16 PM UTC+1, j.e.frank wrote:

 I noticed this post that was also related to report serialization and 
 jaxb:

 https://developers.google.com/adwords/api/community/?place=msg%2Fadwords-api%2F2h_hhyThed0%2FN94XKOfR2GoJ

 I made my own version of the serializer for a ReportDefinition object, 
 that creates a single JaxBContext object and reuses it instead of making a 
 new one each time.  According to some web searching that I did, the 
 JaxBContext is threadsafe so this should be fine, and in fact the 
 recommended approach is to use just one JaxBContext.  This change made a 
 significant reduction in my CPU utilization, in addition to the permgen 
 memory issues that Eli mentions in the post above.

 On Tuesday, October 16, 2012 4:18:31 PM UTC-4, j.e.frank wrote:
>
> I'm upgrading from v201109 to v201209 in java.  I have a method which 
> figures out all of our "active" accounts over a given time frame, by 
> running a simple report for each account and seeing if there are any 
> impressions.  I tested it out and it works fine but my CPU is pretty much 
> pinned at 100% while that method is running.  I went back to the earlier 
> version and it doesn't get much above 20%.
>
> At first I thought it was a difference from the "old" java library to 
> the "new", so I also tried it with v201209 in the "old" library and had 
> the 
> same issue.  I haven't done profiling yet to figure out what the exact 
> difference is, so I was wondering if anyone else has experienced a 
> similar 
> issue.  My first theory is that it has something to do with 
> serializing/deserializing, since I know that has changed significantly 
> with 
> jaxb.
>


-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: [v201209] Vietnam ID 2704 - LocationSearchParameter Error

2012-10-18 Thread Gatsby Lee
Thank you Sebastiaan,

I will try to use v201206

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: TargetingIdeaService - MonthlySearchVolume - last month always missing value

2012-10-18 Thread Rodrigo Saling
Hey guys! Just to be sure: the values you are getting 
through TARGETED_MONTHLY_SEARCHES are *"EXACT" match types*, correct?

I am also migrating the code from version 201109_1 to 201209, and I am 
trying to keep my *AVERAGE_TARGETED_MONTHLY_SEARCHES for a KEYWORD with 
match type "BROAD"*, but I think it's not possible anymore.

Any ideas on how to be able to keep this logic?

Or any idea why the team did this modifications?

Other people have similiar problems:
https://groups.google.com/forum/?fromgroups=#!topic/adwords-api/D75_pfZsjyM
https://groups.google.com/forum/?fromgroups=#!topic/adwords-api/ft6aHR3e-l0 (i 
didn't understand anything)

Thanks in advance!
Rodrigo


Em quarta-feira, 17 de outubro de 2012 17h54min48s UTC-3, eric haberman 
escreveu:
>
> I am experiencing the exact same issue.  The previous month search 
> estimate is always empty.
>
> I'm wondering if maybe we're just falling into a window where that months 
> data hasn't been set yet... but we'll see.
>
> On Wednesday, October 17, 2012 10:45:14 AM UTC-5, Ben Vincent wrote:
>>
>> Hi,
>>
>> I am trying to migrate some code for the TargetingIdeaService from 
>> version 2011 to version 201209 for fetchign keyword suggestions based on a 
>> single kewyord.
>>
>> Everything is working fine, apart from the MonthlySearchVolumes 
>> (TARGETED_MONTHLY_SEARCHES)
>>
>> This is meant to return data for the last 12 months (excluding the 
>> current month).
>>
>> So if I run the query now, I would expect to get data for Aug 2012 -> Oct 
>> 2011
>>
>> No matter what keyword I look for, I always have a missing value for the 
>> previous month. Here is a capture of the XML returned:
>>
>> 
>> TARGETED_MONTHLY_SEARCHES
>> http://www.w3.org/2001/XMLSchema-instance"; 
>> xsi:type="MonthlySearchVolumeAttribute">
>> MonthlySearchVolumeAttribute
>> 20129
>> 2012812100
>> 2012714800
>> 2012614800
>> 2012514800
>> 2012418100
>> 2012333100
>> 2012218100
>> 2012114800
>> 2011129900
>> 2022200
>> 20111049500
>> 
>> 
>>
>>
>> So last month, September is missing the count:
>> 20129
>>
>> For every example I try, I seem to always be missing the count for the 
>> previous month.
>>
>> Is this a bug - or does the v201209 only return 11 months now?
>>
>> This is on the live system, not the sandbox.
>>
>> Thanks for any help anyone can give.
>>
>> Kind regards,
>>
>> Ben
>>
>>
>>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: Documentation errors in TargetingIdeaService

2012-10-18 Thread Rodrigo Saling
Hi Eric!

Can you inform the documentation team to update the page again? 
Because AVERAGE_TARGETED_MONTHLY_SEARCHES is not avaiable anymore.

Thanks!
Rodrigo


Em terça-feira, 3 de abril de 2012 15h11min21s UTC-3, Eric Koleda escreveu:
>
> Hi,
>
> Thanks for bringing this to our attention.  We'll work with the 
> documentation team to correct this.
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Saturday, March 31, 2012 2:14:52 AM UTC-4, Ewan Heming wrote:
>>
>> Yes, I can see there are links at the top of the page for these 
>> attributes, but they've been removed from the table at the bottom.
>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: How do I set individual campaign budget in v201209?

2012-10-18 Thread Goran Jovic
The problem is, if I do that I didn't really create an individual budget, 
but just a shared budget applied to only one campaign.

The reason I asked is that Adwords webapp makes the distinction between 
explicitly created shared budgets and individual budgets (or at least 
appears to), which made me wonder if there was another way to manipulate 
individual budgets. 

If not, I guess that is the way to go.


On Thursday, October 18, 2012 10:08:22 PM UTC+2, David Bonner wrote:
>
> I believe you need to create the budget object first, using the 
> BudgetService, then associate that budgetId with the campaign.
>
> On Thursday, 18 October 2012 12:20:23 UTC-4, Goran Jovic wrote:
>>
>> How do I set *individual* (not shared) campaign budget in v201209?
>>
>> This was possible in v201206, but the same code fails in the new API 
>> version because budgetId field is not set:
>>
>> Budget budget = new Budget();
>> budget.setPeriod(BudgetBudgetPeriod.DAILY);
>> budget.setAmount(new Money(null, 5000L));
>> budget.setDeliveryMethod(BudgetBudgetDeliveryMethod.STANDARD);
>> campaign.setBudget(budget); //fails with: RequiredError.REQUIRED @ 
>> operations[0].operand.budget.budgetId
>>
>> I assume that this feature is still available, because Adwords web 
>> application offers options for both shared and individual budgets and there 
>> aren't any fields in the Budget class to discriminate between the two types.
>>
>> How can I achieve that via API? Is it still possible, or is 
>> it necessary to "emulate" individual budgets by creating shareable ones and 
>> then share them only with one campaign each?
>>
>> Thank you for your reply,
>> Goran
>>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: CriterionError.INVALID_CRITERION_ID

2012-10-18 Thread Gatsby Lee
There is one more.

https://groups.google.com/forum/#!topic/adwords-api/3vuB7sDGS8o

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: CriterionError.INVALID_CRITERION_ID

2012-10-18 Thread Gatsby Lee
There are people having the same problem we have.

https://groups.google.com/forum/#!topic/adwords-api/JVqjYLuw3_c


On Thursday, October 18, 2012 11:26:15 AM UTC-7, Gatsby Lee wrote:
>
> Hello,
>
> We are migrating our code base with v201209 and noticed that many location 
> criteria codes are considered as invalid.
> For example, the location id for Greece is 2300. 
> We are using this location id.
> And here is the response.
>
> I just gave you one example, but there are more.
> Can you tell me what I should do?
>
> [ERROR]APIExceptionstdClass Object
>
> (
>
> [ApiExceptionFault] => stdClass Object
>
> (
>
> [message] => [CriterionError.INVALID_CRITERION_ID @ 
> selector.searchParameters[1].locations[0]; trigger:'2300']
>
> [ApplicationException.Type] => ApiException
>
> [errors] => SoapVar Object
>
> (
>
> [enc_type] => 0
>
> [enc_value] => CriterionError Object
>
> (
>
> [reason] => INVALID_CRITERION_ID
>
> [fieldPath] => 
> selector.searchParameters[1].locations[0]
>
> [trigger] => 2300
>
> [errorString] => 
> CriterionError.INVALID_CRITERION_ID
>
> [ApiErrorType] => CriterionError
>
> [_parameterMap:ApiError:private] => Array
>
> (
>
> [ApiError.Type] => ApiErrorType
>
> )
>
>  
>
> )
>
>  
>
> [enc_stype] => CriterionError
>
> [enc_ns] => 
> https://adwords.google.com/api/adwords/cm/v201209
>
> )
>
>  
>
> )
>
>  
>
> ) 
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: [v201209] Vietnam ID 2704 - LocationSearchParameter Error

2012-10-18 Thread Gatsby Lee
I have the same issue.
I think there are some issue with the criterion_id

Gatsby

On Tuesday, October 16, 2012 2:41:30 PM UTC-7, Sebastiaan Moeys wrote:
>
> Using the TargetingIdeaService, targeting Viet Nam (location ID 2704) with 
> the LocationSearchParameter returns an error:
>
> [CriterionError.INVALID_CRITERION_ID @ 
>> selector.searchParameters[0].locations[0]; trigger:'2704']
>
>
> Not in sandbox mode. It worked and works fine on v201206. 
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: How do I set individual campaign budget in v201209?

2012-10-18 Thread David Bonner
I believe you need to create the budget object first, using the 
BudgetService, then associate that budgetId with the campaign.

On Thursday, 18 October 2012 12:20:23 UTC-4, Goran Jovic wrote:
>
> How do I set *individual* (not shared) campaign budget in v201209?
>
> This was possible in v201206, but the same code fails in the new API 
> version because budgetId field is not set:
>
> Budget budget = new Budget();
> budget.setPeriod(BudgetBudgetPeriod.DAILY);
> budget.setAmount(new Money(null, 5000L));
> budget.setDeliveryMethod(BudgetBudgetDeliveryMethod.STANDARD);
> campaign.setBudget(budget); //fails with: RequiredError.REQUIRED @ 
> operations[0].operand.budget.budgetId
>
> I assume that this feature is still available, because Adwords web 
> application offers options for both shared and individual budgets and there 
> aren't any fields in the Budget class to discriminate between the two types.
>
> How can I achieve that via API? Is it still possible, or is 
> it necessary to "emulate" individual budgets by creating shareable ones and 
> then share them only with one campaign each?
>
> Thank you for your reply,
> Goran
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: Get Click date and time

2012-10-18 Thread Kevin Winter
Hi David,
  Unfortunately, I don't think you'll be able to do that.  The most 
granularity you can get with Time is the HourOfDay column - this is only 
available at the Account, Campaign and AdGroup levels.

- Kevin Winter
AdWords API Team

On Thursday, October 18, 2012 2:18:16 AM UTC-4, David wrote:
>
> Hi Kevin,
> Looking to phone only ads (no click to website), and interested in 
> associating conversions there. I have the conversion date but need the 
> clicks to identify keyword/adgroup/campaign. Thus interested in the time 
> data for each click.
>
> Any idea how to do this?  
>
> - David
>
> On Wednesday, October 17, 2012 2:16:55 PM UTC-7, Kevin Winter wrote:
>>
>> Hi David,
>>   The Date field will return a date like 2012-10-16.  The HourOfDay field 
>> is also available for some reports/combinations of fields.
>>
>> - Kevin Winter
>> AdWords API Team
>>
>> On Wednesday, October 17, 2012 1:01:17 PM UTC-4, David Quiec wrote:
>>>
>>> Hi Kevin,
>>> Will the Date show Date including Time? Or just day within month?
>>>
>>> - David
>>>
>>> On Monday, July 9, 2012 10:40:48 AM UTC-7, Kevin Winter wrote:

 Hi,
   Just to follow up, v201206 has a new Click Performance Report: 
 https://developers.google.com/adwords/api/docs/appendix/reports#click

 It must be run for a single day at a time and does not expose date, but 
 may be of use regardless.

 - Kevin Winter
 AdWords API Team

 On Monday, June 18, 2012 8:28:00 PM UTC-4, David Torres wrote:
>
> Hi Tom,
>
> It is not possible to obtain click specific data, like date and time 
> from the API at this moment. But you might want to take a look to AdWords 
> ValueTrack
> .
>
> Best,
>
> -David Torres - AdWords API Team
>
> On Thursday, June 14, 2012 8:48:51 AM UTC-4, Tom Kessler wrote:
>>
>> Do anyone know of a place to get click date and time? Maybe another 
>> system like Analytics? 
>>
>> Thank you,
>>
>> Tom
>>
>> On Tuesday, June 12, 2012 3:26:30 PM UTC-4, Tom Kessler wrote:
>>>
>>> Hello,
>>>
>>> Is it possible to get Click detailed information such as date and 
>>> time of a click? I read over the AdWords API and it seems there is no 
>>> Click 
>>> entity with date and time properties available.
>>>
>>> Thank you,
>>>
>>> Tom
>>>
>>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Do deleted campaigns count towards the budget refcount?

2012-10-18 Thread David Bonner
Hi all,

I'm in the middle of migrating from 201109 to 201209, and trying to update 
my unit tests.  After deleting any campaigns I've created, I try to delete 
the budgets I created for them.  As soon as I do that, I'm getting 
a BudgetError.BUDGET_IN_USE error.

Has anyone else seen this?  Do I need to dissociate the budget from the 
campaign as I delete it?

Thanks,
Dave

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: AdwordsSession & AdwordsServices for multiple accounts

2012-10-18 Thread Kevin Winter
Hi Oliver,
  Yes, the session object should be safe to read in multiple threads (the 
only caveat is if you are doing OAuth2 and it needs to refresh the token, 
that wouldn't be threadsafe).  Technically, you can also update the 
credentials as well as partialFailure/validateOnly (and 
reportMoneyInMicros).

If you're using ClientLogin or OAuth1.0a, you should be fine in your 
scenario.  Under certain edge conditions OAuth2 might be OK - you just run 
the risk of multiple threads all refreshing it at once.  We wanted to 
recommend treating it as non-threadsafe because the caveats certainly 
complicate matters.

- Kevin Winter
AdWords API Team

On Thursday, October 18, 2012 6:37:20 AM UTC-4, Oliver wrote:
>
> Thanks Kevin for such an excellent resource.
>
> I have a question about the nature of thread safety of the *session *
> object.
>
> So, if we don't make changes to the session* *object at all, does this 
> mean we can use multi threads on the session object (together with the 
> other objects like *ReportDownloader *and the *service stubs *that they 
> hold a reference to the session)?
>
> The only thing that potentially can change on a session is the customer 
> ID, right?  We have a model whereby we cache one session object per account 
> ID, hence we never need to change the customer ID on the session.  Are we 
> safe to use multi threads in our case?
>
> Oliver
>
> On Wednesday, October 17, 2012 10:20:23 PM UTC+1, Kevin Winter wrote:
>>
>> Updated - thanks for pointing that out.
>>
>> - Kevin Winter
>> AdWords API Team
>>
>> On Wednesday, October 17, 2012 4:20:05 PM UTC-4, j.e.frank wrote:
>>>
>>> That's useful.  Can you also update the Migration Guide, because it 
>>> contains contradictory information about the AdWordsServices object?  The 
>>> migration guide calls it heavyweight and non-threadsafe, and the wiki page 
>>> referenced below calls it lightweight and threadsafe.
>>>
>>> On Wednesday, October 17, 2012 4:10:57 PM UTC-4, Kevin Winter wrote:

 Hi Oliver,
   I just published a wiki page on thread safety in the new java 
 library: 
 https://code.google.com/p/google-api-ads-java/wiki/ThreadSafety

 - Kevin Winter
 AdWords API Team

 On Wednesday, October 3, 2012 3:34:04 PM UTC-4, Oliver wrote:
>
> Assume we have an MCC with 5 standard adwords accounts inside it.
>
> An application, using the Java client library, authenticates to access 
> the MCC account and gets the required token for the MCC.
>
> We now need to access the 5 accounts within the MCC, sometimes 
> simultaneously.  Can you please confirm the following:
>
> 1) Since the AdwordsSession object is associated with one account ID, 
> I will need to create 5 AdwordsSession objects one for each account. All 
> AdwordsSessions are created using the same token (obtained when 
> authenticating for MCC). Is this correct?
>
> 2) Even though the AdwordsServies class can be used with multiple 
> sessions, it is not thread safe as documented here:
> http://code.google.com/p/google-api-ads-java/wiki/MigrationGuide
>
> Since the 5 accounts might be accessed simultaneously, I should create 
> 5 different AdwordsServices object, one for each account.  Is this 
> correct?
>
>
> Thanks for your help.
>
> Oliver
>


-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: Sandbox and Reporting

2012-10-18 Thread Alex Jones
as far as I am aware, google doesn't support any sort of random data 
generation in sandbox. I'd love to hear one way or the other from devs. 
My advice is for the short term, run that report on a single target and 
save the zip file it output, then any time you want to test again - have 
your program just reopen that zip rather than redownloading. I accomplish 
this via a debug flag, that simply skips the download if true.

On Thursday, October 18, 2012 2:55:11 PM UTC-4, Timothy Klim wrote:
>
> Hi!
>
> I'm testing my application with report data by this query:
> post https://adwords-sandbox.google.com/api/adwords/reportdownload/v201209
> 
> https://adwords.google.com/api/adwords/cm/v201109
> ">
>   
> Id
> Date
> AdGroupId
> Impressions
> Clicks
> Cost
> Conversions
> ConversionValue
> AveragePosition
>   
>   Report
>   AD_PERFORMANCE_REPORT
>   ALL_TIME
>   GZIPPED_XML
> 
>
> and I got empty results.
> I've created campaigns, groups, ads, keywords: 
> http://cl.ly/image/3e142j35272T.
>
> What I need to do for random data in report results?
>
> Thank you.
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: CriterionError.INVALID_CRITERION_ID on setting location->id on v201209 in sandbox

2012-10-18 Thread Gatsby Lee
Danial,

Even though we are using the production server to get data, we still see 
the same error.

Gatsby


On Thursday, October 11, 2012 5:30:00 AM UTC-7, Danial Klimkin wrote:
>
> Hello Patrick,
>
>
> The sandbox environment is good for testing only and all data is 
> generated. The services can return zeroes, random values or an error, 
> depending on service.
>
>
> -Danial, AdWords API Team.
>
>
> On Tuesday, October 9, 2012 1:07:09 PM UTC+4, Patrick Fischer wrote:
>>
>> Hi,
>>
>> I'm using the lastest adwords api v201209 with the php client software.
>>
>> Using the same code in sandbox instead of the production server fails 
>> with the following message: Fatal error: Uncaught SoapFault exception: 
>> [soap:Server] [CriterionError.INVALID_CRITERION_ID @ 
>> selector.searchParameters[2].locations[0]; trigger:'2276']
>>
>> In v201206 it still works in production and also in sandbox.
>>
>> Greetings
>>
>> $selector = new TargetingIdeaSelector();
>> $selector->requestType = 'STATS';
>> $selector->ideaType = 'KEYWORD';
>> $selector->requestedAttributeTypes = array('KEYWORD_TEXT', 'COMPETITION', 
>> 'SEARCH_VOLUME');
>> $selector->localeCode = 'de_DE';
>> $selector->currencyCode = 'EUR';
>>
>> $paging = new Paging();
>> $paging->startIndex = 0;
>> $paging->numberResults = 500;
>> $selector->paging = $paging;
>>
>> $relatedToQuerySearchParameter = new RelatedToQuerySearchParameter();
>> $relatedToQuerySearchParameter->queries = $kwList;
>>
>> $location = new Location();
>> $location->id = 2276; //2040
>>
>> $locationSearchParameter = new LocationSearchParameter();
>> $locationSearchParameter->locations = array( $location );
>>
>> $language = new Language();
>> $language->id = 1001;
>>
>> $languageSearchParameter = new LanguageSearchParameter();
>> $languageSearchParameter->languages = array( $language );
>>
>> $selector->searchParameters = 
>> array($relatedToQuerySearchParameter,$locationSearchParameter,$languageSearchParameter);
>>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: TargetingIdeaService - MonthlySearchVolume - last month always missing value

2012-10-18 Thread Gatsby Lee
I have had this for long time, I think you shouldn't expect that all 
keywords have search volume for previous month.

On Wednesday, October 17, 2012 8:45:14 AM UTC-7, Ben Vincent wrote:
>
> Hi,
>
> I am trying to migrate some code for the TargetingIdeaService from version 
> 2011 to version 201209 for fetchign keyword suggestions based on a single 
> kewyord.
>
> Everything is working fine, apart from the MonthlySearchVolumes 
> (TARGETED_MONTHLY_SEARCHES)
>
> This is meant to return data for the last 12 months (excluding the current 
> month).
>
> So if I run the query now, I would expect to get data for Aug 2012 -> Oct 
> 2011
>
> No matter what keyword I look for, I always have a missing value for the 
> previous month. Here is a capture of the XML returned:
>
> 
> TARGETED_MONTHLY_SEARCHES
> http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:type="MonthlySearchVolumeAttribute">
> MonthlySearchVolumeAttribute
> 20129
> 2012812100
> 2012714800
> 2012614800
> 2012514800
> 2012418100
> 2012333100
> 2012218100
> 2012114800
> 2011129900
> 2022200
> 20111049500
> 
> 
>
>
> So last month, September is missing the count:
> 20129
>
> For every example I try, I seem to always be missing the count for the 
> previous month.
>
> Is this a bug - or does the v201209 only return 11 months now?
>
> This is on the live system, not the sandbox.
>
> Thanks for any help anyone can give.
>
> Kind regards,
>
> Ben
>
>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Sandbox and Reporting

2012-10-18 Thread Timothy Klim
Hi!

I'm testing my application with report data by this query:
post https://adwords-sandbox.google.com/api/adwords/reportdownload/v201209

https://adwords.google.com/api/adwords/cm/v201109";>
  
Id
Date
AdGroupId
Impressions
Clicks
Cost
Conversions
ConversionValue
AveragePosition
  
  Report
  AD_PERFORMANCE_REPORT
  ALL_TIME
  GZIPPED_XML


and I got empty results.
I've created campaigns, groups, ads, 
keywords: http://cl.ly/image/3e142j35272T.

What I need to do for random data in report results?

Thank you.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


CriterionError.INVALID_CRITERION_ID

2012-10-18 Thread Gatsby Lee
Hello,

We are migrating our code base with v201209 and noticed that many location 
criteria codes are considered as invalid.
For example, the location id for Greece is 2300. 
We are using this location id.
And here is the response.

I just gave you one example, but there are more.
Can you tell me what I should do?

[ERROR]APIExceptionstdClass Object

(

[ApiExceptionFault] => stdClass Object

(

[message] => [CriterionError.INVALID_CRITERION_ID @ 
selector.searchParameters[1].locations[0]; trigger:'2300']

[ApplicationException.Type] => ApiException

[errors] => SoapVar Object

(

[enc_type] => 0

[enc_value] => CriterionError Object

(

[reason] => INVALID_CRITERION_ID

[fieldPath] => 
selector.searchParameters[1].locations[0]

[trigger] => 2300

[errorString] => 
CriterionError.INVALID_CRITERION_ID

[ApiErrorType] => CriterionError

[_parameterMap:ApiError:private] => Array

(

[ApiError.Type] => ApiErrorType

)

 

)

 

[enc_stype] => CriterionError

[enc_ns] => 
https://adwords.google.com/api/adwords/cm/v201209

)

 

)

 

) 

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: Billing Issues

2012-10-18 Thread Danial Klimkin
Hello,


This forum is for technical questions regarding AdWords API only. Please 
contact general AdWords support regarding billing issues:

  http://support.google.com/adwords/


-Danial, AdWords API Team.


On Wednesday, October 10, 2012 8:12:10 PM UTC+4, Little box wrote:
>
> Today, I had 28 clicks in my campaign and it costs approximately 20,00 TL 
> but when I looked at billing page, it's seen as 140,00 TL. I always relied 
> on google adwords but today I directly saw that clicks could increase up to 
> 400 in 2 minutes and decrease suddenly. I don't know what to do but this is 
> not fair:(!!! Help me! 

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: BulkMutateJobService returning TOO_MANY_OPERATIONS_IN_JOB

2012-10-18 Thread Danial Klimkin
Hello David,


All existing services will be present in all versions until the deprecation 
date. We recommend to start migrating sooner to make sure you are ready on 
time.


-Danial, AdWords API Team. 


On Thursday, October 18, 2012 8:38:29 PM UTC+4, david wrote:
>
> Thanks.. but BMJS will be present in 201206 until feb 2013 right?
>
> We've coded round this 500,000 job limit for now but were mystified as to 
> where it came from since the docs imply it should be much higher?
>
> On Thursday, October 18, 2012 5:31:33 PM UTC+1, Danial Klimkin wrote:
>>
>> Hello David,
>>
>>
>> Please note the BMJS service is now deprecated and was removed from 
>> v201209. You can use the MutateJobService instead which can only have 
>> one-part jobs. It should not be an issue though as there is no limit on the 
>> number of jobs you can submit.
>>
>>
>> -Danial, AdWords API Team.
>>
>>
>> On Tuesday, October 16, 2012 6:17:32 PM UTC+4, david wrote:
>>>
>>> As above, we're getting back TOO_MANY_OPERATIONS_IN_JOB when trying to 
>>> create a bulk job using 201109 BulkMutateJobService.
>>> The request fail as we go over 500,000 operations, but the documentation 
>>> implies we should be able to get 100 request parts each with 10,000 
>>> operations:
>>>
>>> https://developers.google.com/adwords/api/docs/guides/bulkjobs#bulkmutatejob
>>> Is there another limit in place?
>>>
>>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: Sandbox for v201209

2012-10-18 Thread Danial Klimkin
Hello Sudhir,


This might be related to the library rather than the server side. If you 
still have difficulties with it, please let me know the exact library 
version and provide more extensive example.


-Danial, AdWords API Team.


On Tuesday, October 9, 2012 6:21:49 PM UTC+4, Sudhir wrote:
>
> When experimenting with v201209 I noticed the sandbox and prooduction 
> environment works different. Production is fine but it appears sanbox was 
> not updated to use new schema. When calling ManagedCustomer service with 
> selector say 
> *fields =>  [:login]* (ruby client), 
> it worked in sandbox but not in production. Production worked as expected 
> because it needs to be 
> *fields =>  ["Login"]
> *But initially it gave me wrong impression that something is wrong with 
> production because sandbox with wrong fields value was able to return all 
> accounts.
> *
> *

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: Sandbox can't run C# example, HELP

2012-10-18 Thread Danial Klimkin
Hello Karol,


Please take a look on this page that describes how to set up a sandbox 
account:

 https://developers.google.com/adwords/api/docs/sandbox

Note, you don't need to create any account with CreateAccount example, you 
need to run getCampaigns example and then getAccountHierarchy to determine 
what accounts have been created for you.


-Danial, AdWords API Team.



On Monday, October 8, 2012 5:11:26 PM UTC+4, Karol Słuszniak wrote:
>
> Hi, 
> I’m new in AdWords API so I decided to download run some example to see 
> how it works. I download file: awapi_dotnet_lib_v15.0.0.zip from 
> code.google.com.
> I fill App.config file and setup command line arguments to : 
> v201209.CreateAccount
>
> When I run this example I got exception:
> System.Web.Services.Protocols.SoapException 
> (InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
> com.google.ads.api.services.common.error.InternalApiError.(InternalApiErro)
>
> This is few line form my App.config file:
> 
> 
> 
> 
> https://adwords-sandbox.google.com"/>
>
> Please tell me what I’m doing wrong.
>
> PS: Sorry for my poor English
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: BulkMutateJobService returning TOO_MANY_OPERATIONS_IN_JOB

2012-10-18 Thread david
Thanks.. but BMJS will be present in 201206 until feb 2013 right?

We've coded round this 500,000 job limit for now but were mystified as to 
where it came from since the docs imply it should be much higher?

On Thursday, October 18, 2012 5:31:33 PM UTC+1, Danial Klimkin wrote:
>
> Hello David,
>
>
> Please note the BMJS service is now deprecated and was removed from 
> v201209. You can use the MutateJobService instead which can only have 
> one-part jobs. It should not be an issue though as there is no limit on the 
> number of jobs you can submit.
>
>
> -Danial, AdWords API Team.
>
>
> On Tuesday, October 16, 2012 6:17:32 PM UTC+4, david wrote:
>>
>> As above, we're getting back TOO_MANY_OPERATIONS_IN_JOB when trying to 
>> create a bulk job using 201109 BulkMutateJobService.
>> The request fail as we go over 500,000 operations, but the documentation 
>> implies we should be able to get 100 request parts each with 10,000 
>> operations:
>>
>> https://developers.google.com/adwords/api/docs/guides/bulkjobs#bulkmutatejob
>> Is there another limit in place?
>>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: About Quality Info

2012-10-18 Thread Danial Klimkin
Hello Seval,


Do you request the relevant fields in the selector? Please see:

  
https://developers.google.com/adwords/api/docs/reference/latest/AdGroupCriterionService.QualityInfo?hl=en


-Danial, AdWords API Team.


On Tuesday, October 9, 2012 4:30:21 PM UTC+4, Seval Zirve wrote:
>
> Hi,
>
> i get some quality info with API but always return same results. How can i 
> get isLandingPageLatencyAcceptable, isLandingPageQualityAcceptable, 
> isKeywordAdRelevanceAcceptable values?
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: Can't specify an Adgroup Status selector on AdGroupCriterionService. Stuck for a solution.

2012-10-18 Thread Danial Klimkin
Hello Oliver,


We do not have any ETA for this feature at the moment unfortunately.


-Danial, AdWords API Team.


On Tuesday, October 16, 2012 5:47:59 PM UTC+4, Oliver wrote:
>
> Hi Danial,
>
> I'll check if we can introduce qualityinfo details into the reports instead
>
>
> Have you had a chance to check if this can be a possibility in the near 
> future?
>
> Oliver
>
>
> On Monday, October 1, 2012 9:55:01 AM UTC+1, AdWords API Advisor wrote:
>>
>> Hello Oliver, 
>>
>>
>> In this case I'd recommend to use reports to get active AdGroups list and 
>> use AdGroup's IDs in the predicate. 
>>
>> It is very unlikely we'll introduce services coupling like this in near 
>> future. I'll check if we can introduce qualityinfo details into the 
>> reports instead. 
>>
>>
>> -Danial, AdWords API Team. 
>>
>>
>> Original Message Follows: 
>>  
>> From: Oliver  
>> Subject: Re: Can't specify an Adgroup Status selector on 
>> AdGroupCriterionService. Stuck for a solution. 
>> Date: Fri, 28 Sep 2012 06:34:21 -0700 (PDT) 
>>
>> > Thanks Daniel.  I can't use reports because I'm trying to get data that 
>> is 
>> > available only via the service objects (qualityinfo). 
>> > 
>> > I could just get back all keywords and only use the ones I know are in 
>> > active adgroups.  However, I'll be paying the API access rate to get 
>> > keywords that I don't need.  In an account with tens of thousands of 
>> > keywords in deleted adgroups, this cost escalates quickly. 
>> > 
>> > I don't know what the implication would be (on the network traffic or 
>> API 
>> > call execution) of passing in the exact IDs of the keywords I want in 
>> the 
>> > selector field.  There could be tens of thousands of them and I don't 
>> want 
>> > to pass such a huge amount of info in a http request. 
>> > 
>> > Where can I add this as a feature request for future releases? 
>> > 
>> > Oliver 
>> > 
>> > 
>> > On Friday, September 28, 2012 10:36:11 AM UTC+1, Danial Klimkin wrote: 
>> > > 
>> > > Hello Oliver, 
>> > > 
>> > > 
>> > > You can add columns for both AdGroup and Criteria to the Criteria 
>> report: 
>> > > 
>> > >   
>> https://developers.google.com/adwords/api/docs/appendix/reports#criteria 
>> > > 
>> > > Setting filter on both AdGroupStatus and Status should return the 
>> correct 
>> > > data set for you. 
>> > > 
>> > > There is no way to achieve this with the AdGroupCriterion service 
>> though. 
>> > > 
>> > > 
>> > > -Danial, AdWords API Team. 
>> > > 
>> > > 
>> > > 
>> > > On Friday, September 28, 2012 1:22:52 PM UTC+4, Oliver wrote: 
>> > >> 
>> > >> Thanks for the suggestion.  We can do that, but that's a long and 
>> slow 
>> > >> way of achieving the result which I'd like to avoid if possible. It 
>> would 
>> > >> have been great if we could filter on the adgroup status if we can. 
>> > >> 
>> > >> Any other ideas from the pro users of the API or the API team? 
>> > >> 
>> > >> Oliver 
>> > >> 
>> > >> On Thursday, September 27, 2012 9:57:07 PM UTC+1, j.e.frank wrote: 
>> > >>> 
>> > >>> One idea is, you can first get the list of AdGroups that are 
>> Active, 
>>
>> > >>> using the AdGroupService.  Then build a list of the IDs of those ad 
>> groups, 
>> > >>> and use it in the selector of the keywords (along with the Status 
>> predicate 
>> > >>> that picks only active keywords). 
>> > >>> 
>> > >>> On Thursday, September 27, 2012 12:26:09 PM UTC-4, Oliver wrote: 
>> >  
>> >  We're trying to use the AdgroupCriterionService to get some 
>> information 
>> >  about *active *keywords only.  We're using the 'Status' selector 
>> field 
>> >  to ensure only data for active keywords are returned. 
>> >  
>> >  However, there are deleted Adgroups whose keywords are still in 
>> >  'active' status.  Adwords users typically just pause or delete an 
>> adgroup 
>> >  without having to change the status of each keyword inside it. 
>> >  
>> >  As you can guess, the issue we now have is we're getting back data 
>> for 
>> >  these active keywords that are in the deleted adgroups! 
>> >  
>> >  I can't see any selector field that we can use to filter by the 
>> Adgroup 
>> >  status as well. 
>> >  
>> >  Any ideas how we can get round this issue please?  Is there any 
>> other 
>> >  way we can target only the truly active keywords in the campaign? 
>> >  
>> >  Thanks in advance for any help with this. 
>> >  
>> >  Oliver 
>> >  
>> > >>> 
>> > 
>> > -- 
>> > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 
>> > Also find us on our blog and discussion group: 
>> > http://adwordsapi.blogspot.com 
>> > http://groups.google.com/group/adwords-api 
>> > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 
>> > 
>> > You received this message because you are subscribed to the Google 
>> > Groups "AdWords API Forum" group. 
>> > To post to this group, send email to adwor...@googlegroups.com 
>> > To unsubscribe from this g

Re: BulkMutateJobService returning TOO_MANY_OPERATIONS_IN_JOB

2012-10-18 Thread Danial Klimkin
Hello David,


Please note the BMJS service is now deprecated and was removed from 
v201209. You can use the MutateJobService instead which can only have 
one-part jobs. It should not be an issue though as there is no limit on the 
number of jobs you can submit.


-Danial, AdWords API Team.


On Tuesday, October 16, 2012 6:17:32 PM UTC+4, david wrote:
>
> As above, we're getting back TOO_MANY_OPERATIONS_IN_JOB when trying to 
> create a bulk job using 201109 BulkMutateJobService.
> The request fail as we go over 500,000 operations, but the documentation 
> implies we should be able to get 100 request parts each with 10,000 
> operations:
>
> https://developers.google.com/adwords/api/docs/guides/bulkjobs#bulkmutatejob
> Is there another limit in place?
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: JobOperation not available in v201209

2012-10-18 Thread Danial Klimkin
Hello Yeison,


The BulkMutateJobService is now deprecated, and the MutateJobService does 
not support removing submitted jobs as it should not have any stale jobs, 
nor supports multi-part requests.


-Danial, AdWords API Team.


On Tuesday, October 16, 2012 8:08:13 PM UTC+4, Yeison Rodriguez wrote:
>
> I see that JobOperation.java is no longer in the API in v201209. 
>  Previously, we had been using the JobOperation class to perform job-level 
> operations, such as REMOVE.  Specifically, in cases where we had a PENDING 
> bulk job waiting for request parts, we'd delete the bulk job if for some 
> reason or another the bulk job could not be completed with remaining parts.
>
> What I am piecing together from the new API is that the new 
> MutateJobService does not have parts.  Do JobOperations still exist?  Is 
> there an alternative?  Would it ever be necessary to utilize JobOperation 
> in the new API?
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: Error trying to update Keyword destination url

2012-10-18 Thread Danial Klimkin
Hello Joan,


Please double-check you are sending the correct clientCustomerId in the 
headers. If still in doubt, send us the full XML log with request and 
response code over *email*.

Make sure to remove sensitive parts such as developer token and auth token, 
and to use "Reply" button to send it to me only, not the mailing list.


-Danial, AdWords API Team.


On Tuesday, October 16, 2012 8:25:09 PM UTC+4, joanfihu wrote:
>
> HI,
>
> I am trying to update the destination urls of keywords and I am getting 
> the following error:
>
> Keyword with id '12455725' has updated destination URL '
> http://joanfihu.co.uk'. 
> An error has occurred: [EntityNotFound.INVALID_ID @ operations[0].
> operand.criterion.id; trigger:'CriterionId{id=31402184}']
>
> The first keyword is updated correclty. However, from the second onwards 
> it doesn't work. 
> I've checked the id's using the call *getKewyords* and the id's are 
> correct.
>
> Kind regards,
> Joan Figuerola
>
>
>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


How do I set individual campaign budget in v201209?

2012-10-18 Thread Goran Jovic
How do I set *individual* (not shared) campaign budget in v201209?

This was possible in v201206, but the same code fails in the new API 
version because budgetId field is not set:

Budget budget = new Budget();
budget.setPeriod(BudgetBudgetPeriod.DAILY);
budget.setAmount(new Money(null, 5000L));
budget.setDeliveryMethod(BudgetBudgetDeliveryMethod.STANDARD);
campaign.setBudget(budget); //fails with: RequiredError.REQUIRED @ 
operations[0].operand.budget.budgetId

I assume that this feature is still available, because Adwords web 
application offers options for both shared and individual budgets and there 
aren't any fields in the Budget class to discriminate between the two types.

How can I achieve that via API? Is it still possible, or is it necessary to 
"emulate" individual budgets by creating shareable ones and then share them 
only with one campaign each?

Thank you for your reply,
Goran

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: TargetingIdeaService error faultString: [QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:

2012-10-18 Thread Gerald Müller
It seems my problem is related to this:
https://groups.google.com/d/msg/adwords-api/SG4nMaOBd0Q/WCRUMIDTyIoJ

The SANDBOX is currently return an error...

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: TargetingIdeaService error faultString: [QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:

2012-10-18 Thread Gerald Müller
Hi!

I have the same problem with the Ruby Client Libary and v201209 in the 
SANDBOX with ClientLogin...

Am Donnerstag, 11. Oktober 2012 09:45:45 UTC+2 schrieb Ace:
>
> Hi,
>  
> I'm trying to run the example in Java from V201206 - just running the 
> example code - GetRelatedKeywords.java.
> I get an error - 
> Running other example work fine (GetAllCampaigns.java).- So I assume my 
> adwordUser is fine.
>
>  
> Any ideas? Thanks.
>
>  
>
> faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
>
> faultSubcode: 
>
> faultString: [QuotaCheckError.INVALID_TOKEN_HEADER @ ; 
> trigger:...@gmail.com ++USD']
>
>  
>
> : 
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


API returns different results for Targeted Search Volume from the results in Keyword Tool interface

2012-10-18 Thread Desislava Georgieva
Hi,

we implemented TargetingIdeaService for v201206. In this version we can't 
specify keyword match type and the returned results are for the Exact match 
type of the keyword. But the results returned by API are different from the 
results in Keyword Tool interface. Here are examples:

Keyword: baum
Language: DE
Country: Germany
Targeted Search Volume (according to Keyword Tool): 22 200
Targeted Search Volume (via API): n/a for the last month (09.2012), 18100 
for August 2012, 18100 for July 2012. I tried calculating the average 
volume of the returned results. I summed the results and I divided the 
result by 12 as 12 results are returned. The result is ~20892. Also I 
divided the sum of all values by 11 (as the result for last must is n/a) 
and the result is ~22791. Both results are closer to the interface value, 
but still not equal. Also I get as result for the last month the result for 
august 2012 and I divided the sum of all results by 12. The result is 22 
400, witch is different from the result in Keyword Tool interface.
SEARCH_VOLUME (via API): 33 100
With v201109 we had AVERAGE_TARGETED_MONTHLY_SEARCHES which would equal the 
results in the interface. According to this link 
https://developers.google.com/adwords/api/docs/guides/migration-v201206 the 
new SEARCH_VOLUME is equivalent to AVERAGE_TARGETED_MONTHLY_SEARCHES if 
language and/or location is specified. But SEARCH_VOLUME returns some 
absolutely different result - 33 100.

Another example:
Keyword: katze
Language: DE
Country: Germany
Targeted Search Volume (according to Keyword Tool): 40 500
Targeted Search Volume (via API): 33 100

Could you please help me understand how to get the same results with 
v201206? Thank you in advance!

(I'm attaching both the request and the response xmls)

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


request_v201206.xml
Description: XML document


response_v201206.xml
Description: XML document


Re: INVALID_TOKEN_HEADER when using Adwords API in sandbox

2012-10-18 Thread AdWords API Advisor
Hi Binhu,

As Yeison mentioned, can you just check that you are setting the 
DEFAULT_SERVER in the settings.ini to be the sandbox? As the
 $developerToken you've specified looks to be constructed for the sandbox.

Please see https://developers.google.com/adwords/api/docs/sandbox for more 
information.

-Ads Developer Relations Team.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: INVALID_TOKEN_HEADER when using Adwords API in sandbox

2012-10-18 Thread AdWords API Advisor
Hi Binhu,

As Yeison mentioned, can you just check that you are setting the 
DEFAULT_SERVER in the settings.ini to be the sandbox? As the$developerToken 
you've 
specified looks to be constructed for the sandbox.

Please see https://developers.google.com/adwords/api/docs/sandbox for more 
information.

-Ads Developer Relations Team.

On Thursday, October 11, 2012 8:00:48 AM UTC+1, binh nguyen wrote:
>
> Hi Mr/Mrs/Miss.
>
> I am a new guys on Adwords API.
> I am developing to getRelatedKeyword by Google Adwords API PHP 
> But when i run code. I get value:
>
> *[QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:'...@gmail.com
> ++USD']*
>
> My Code:
>
>* $username = "binh@gmail.com ";
> $password = "**";
> $currencyCode = "USD";
> $developerToken = "$username++$currencyCode"; 
> try {
>
>  $user = new AdWordsUser(null, $username, $password, 
> $developerToken);
>  $user->SetDefaultServer("https://adwords-sandbox.google.com";);
>  $user->LogAll();
>  $user->SetClientId('9840908587');
>
>  $targetingIdeaService = 
> $user->GetService('TargetingIdeaService','v201109');
>
>  $keyword = new Keyword();
>  $keyword->text = utf8_encode('gangnam style');
>
>  $keyword->matchType = 'BROAD';
>
>  $selector = new TargetingIdeaSelector();
>  $selector->requestType = 'STATS';
>  $selector->ideaType = 'KEYWORD';
>   
>  $selector->requestedAttributeTypes = 
> array('CRITERION','GLOBAL_MONTHLY_SEARCHES', 'TARGETED_MONTHLY_SEARCHES',
>   'AVERAGE_TARGETED_MONTHLY_SEARCHES', 
> 'COMPETITION','EXTRACTED_FROM_WEBPAGE'); 
>   
>  $paging = new Paging();
>  $paging->startIndex = 0;
>  $paging->numberResults = 10;
>  $selector->paging = $paging;
>   
>  //v201109
>   
> $relatedToKeywordSearchParameter = new 
> RelatedToKeywordSearchParameter();
> $relatedToKeywordSearchParameter->keywords = array($keyword);
>
> $keywordMatchTypeSearchParameter = new 
> KeywordMatchTypeSearchParameter();
> $keywordMatchTypeSearchParameter->keywordMatchTypes = 
> array('BROAD');
>
> $locations = array();
> $location = new Location();
> $location->id = 2704; 
> $locations[] = $location;
>
> $locationTargetParameter = new 
> LocationSearchParameter($locations); // Expects arra of locations
>
> $languages = array();
> $language = new Language();
> $language->id = 1040;
> $languages[] = $language;
>   
> $languageTargetParameter = new LanguageSearchParameter($languages);
>   //v201109
> $selector->searchParameters = 
> array($relatedToKeywordSearchParameter,$keywordMatchTypeSearchParameter, 
> $locationTargetParameter, $languageTargetParameter);
>
> $page = $targetingIdeaService->get($selector);
>
>   // Display related keywords.
>   
>   if (isset($page->entries)) {
> foreach ($page->entries as $targetingIdea) {
>   $data = MapUtils::GetMap($targetingIdea->data);
>   $keyword = $data['CRITERION']->value;
>   $averageMonthlySearches =
>   isset($data['AVERAGE_TARGETED_MONTHLY_SEARCHES']->value)
>   ? $data['AVERAGE_TARGETED_MONTHLY_SEARCHES']->value : 0;
>   printf("Keyword with text '%s', match type '%s', and average
> monthly "
>   . "search volume '%s' was found.\n", $keyword->text,
>   $keyword->matchType, $averageMonthlySearches);
> }
>   } else {
> print "No related keywords were found.\n";
>   }
> } catch (Exception $e) {
>   print $e->getMessage();
> } 
>
>
> Please help me to fix INVALID_TOKEN_HEADER
>
> Thanks
> *

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: AdwordsSession & AdwordsServices for multiple accounts

2012-10-18 Thread Oliver
Thanks Kevin for such an excellent resource.

I have a question about the nature of thread safety of the *session *object.

So, if we don't make changes to the session* *object at all, does this mean 
we can use multi threads on the session object (together with the other 
objects like *ReportDownloader *and the *service stubs *that they hold a 
reference to the session)?

The only thing that potentially can change on a session is the customer ID, 
right?  We have a model whereby we cache one session object per account ID, 
hence we never need to change the customer ID on the session.  Are we safe 
to use multi threads in our case?

Oliver

On Wednesday, October 17, 2012 10:20:23 PM UTC+1, Kevin Winter wrote:
>
> Updated - thanks for pointing that out.
>
> - Kevin Winter
> AdWords API Team
>
> On Wednesday, October 17, 2012 4:20:05 PM UTC-4, j.e.frank wrote:
>>
>> That's useful.  Can you also update the Migration Guide, because it 
>> contains contradictory information about the AdWordsServices object?  The 
>> migration guide calls it heavyweight and non-threadsafe, and the wiki page 
>> referenced below calls it lightweight and threadsafe.
>>
>> On Wednesday, October 17, 2012 4:10:57 PM UTC-4, Kevin Winter wrote:
>>>
>>> Hi Oliver,
>>>   I just published a wiki page on thread safety in the new java library: 
>>> https://code.google.com/p/google-api-ads-java/wiki/ThreadSafety
>>>
>>> - Kevin Winter
>>> AdWords API Team
>>>
>>> On Wednesday, October 3, 2012 3:34:04 PM UTC-4, Oliver wrote:

 Assume we have an MCC with 5 standard adwords accounts inside it.

 An application, using the Java client library, authenticates to access 
 the MCC account and gets the required token for the MCC.

 We now need to access the 5 accounts within the MCC, sometimes 
 simultaneously.  Can you please confirm the following:

 1) Since the AdwordsSession object is associated with one account ID, I 
 will need to create 5 AdwordsSession objects one for each account. All 
 AdwordsSessions are created using the same token (obtained when 
 authenticating for MCC). Is this correct?

 2) Even though the AdwordsServies class can be used with multiple 
 sessions, it is not thread safe as documented here:
 http://code.google.com/p/google-api-ads-java/wiki/MigrationGuide

 Since the 5 accounts might be accessed simultaneously, I should create 
 5 different AdwordsServices object, one for each account.  Is this correct?


 Thanks for your help.

 Oliver

>>>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: Does the AdWords API support authentication via service accounts (OAuth 2.0)?

2012-10-18 Thread Win Ko Aye
Hi,

Just sharing my experience with OAuth2 service account.

Step 1: Create 'Service Account' in 'API console'

- Log in to api console using the email that you used to connect adwords 
api. The email should be from your domain, for 

example, adwo...@yourdomain.com

https://code.google.com/apis/console/

- Create a new project if you havn't done so in the past.
- Go to 'API Access' page and 'Create client ID', choose 'Service Account' 
from the options.
- Download private key of the client service account, take note of 'Client 
ID' and 'Email address'. You'll see 
something like;

Client ID: 123456789012.apps.googleusercontent.com
Email address: 123456789...@developer.gserviceaccount.com
Public key fingerprints: 123456789abcdef123456789abcdef123456789a

Private key's default filename is like 
'123456789abcdef123456789abcdef123456789a-privatekey.p12'


Step 2: Authorize api client in 'Google Apps for Business'

- You need domain administrator access to 'Google Apps for Business'. Log 
in to http://www.google.com/enterprise/apps/business/ with domain admin 
account.

- Go to 'Advanced Tools > Manage client API access'. 
- Enter client ID, from above example that's 
'123456789012.apps.googleusercontent.com' in 'Client Name' field. 
- Enter 'https://adwords.google.com/api/adwords' in 'One or More API 
Scopes' field.
- Hit 'Authorize'

Here's the page to detail instructions

OAuth: Managing API client access
http://support.google.com/a/bin/answer.py?hl=en&answer=162106 


Step 3: Coding using java client libraries

- I use 'Google API Client Library for Java, version 1.11.0-beta'
https://code.google.com/p/google-api-java-client/downloads/detail?name=google-api-java-client-1.11.0-beta.zip&can=2&q=


- And follow the OAuth2 example from 
https://code.google.com/p/google-api-ads-java/source/browse/examples/adwords_axis/src/main/java/adwords/axis/v201209/misc/OAuth2Example.java

But replace getOAuth2Credential() with

private static Credential getOAuth2Credential() throws Exception {

File keyFile = new 
File("123456789abcdef123456789abcdef123456789a-privatekey.p12");
 
GoogleCredential serviceAccountCredential = new 
GoogleCredential.Builder()
.setTransport(new NetHttpTransport())
.setJsonFactory(new JacksonFactory())
.setServiceAccountId("123456789...@developer.gserviceaccount.com")
.setServiceAccountScopes("https://adwords.google.com/api/adwords";)
.setServiceAccountPrivateKeyFromP12File(keyFile)
.setServiceAccountUser("adwo...@yourdomain.com")
.build();

return serviceAccountCredential;
}

You can ignore CALLBACK_URL, CLIENT_ID and CLIENT_SECRET. They are use for 
interactive web server application.

Check 'ads.properties' file

api.adwords.email=adwo...@yourdomain.com
api.adwords.password=***
api.adwords.clientCustomerId.prod=123-456-7890
api.adwords.environment=production

That's it and good luck.

Win Ko


On Wednesday, October 17, 2012 1:19:55 AM UTC+8, Bobby wrote:
>
> Specifically, I am trying to run AdHoc reports without any user 
> interaction.  Since it is a new application, it would be desirable to use 
> the latest technology instead of using something that is already deprecated 
> (i.e. ClientLogin).  Can one of the AdWords moderators please comment?  If 
> this is not possible, please provide an alternate solution that will not 
> require updating in the near future.  Thanks.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


ad copy

2012-10-18 Thread u...@taykey.com
Hi all,

i want to create an adgroup from an existing one.
until now i managed to get the existing adgroup and send it as is (with 
different name ) to create a new one
for the adgroup criterions a did the same, excpet some remove and add of 
criterions, and ofcourse change the adgroup id.
is there an option to copy all the ads under the existing adgroup to the 
new one ?
or should i get them all and send them back with the id of the new adgroup?
Im using the python client

Thanks in advance!

Udy

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


adServingOptimizationStatus.CONVERSION_OPTIMIZE v201206

2012-10-18 Thread MarcF
Hello,
 When we have a campaign (in  conversion optimizer bidding strategy), and 
we try to change adservingoptimizationstatus  to CONVERSION_OPTIMIZE the 
Soap response is always

OPTIMIZE and not 
the value CONVERSION_OPTIMIZE as expected.

here an example  : 
0004cc51a4950ee00aedb204028b

But in the UI, adServingOptimizationStatus = CONVERSION_OPTIMIZE is 
selected 
Could you have a look ?

Thanks,


-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


how rate will calculate for adword api targeting idea service?

2012-10-18 Thread devdeep barad
hi  everyone,
  i need to search keyword from adword.so i  use targetting idea 
service for that.but i need devloper token.so i need to pay for api call.so 
can any one tell me how this rate will calculate.
 

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: Use of AdWords API for end user application

2012-10-18 Thread Oliver
Yes you can.  You might have to implement the required minimum 
functionality:
https://developers.google.com/adwords/api/docs/requirements

Also, check the API terms and conditions:
https://developers.google.com/adwords/api/docs/terms

Oliver

On Wednesday, October 17, 2012 11:02:20 PM UTC+1, Gunjan Kalariya wrote:
>
> Hi,
>
> Can some one please tell me that can I use AdWords API for making an end 
> user application?
>
> Actually I want to make an application through which my clients' can check 
> their Google AdWords account's information
> and also able to create new campaign.
>
> so can i use API for this purpose?
>
> Thanks!!
> Gunjan
>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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