Re: How to get a list of campaigns?

2015-09-17 Thread Brett Baggott
Adwords API Getting 
Started: https://developers.google.com/adwords/api/docs/guides/start?hl=en

Adwords API PHP Client Library Getting 
Started: https://github.com/googleads/googleads-php-lib

On Thursday, September 17, 2015 at 4:33:05 AM UTC-5, Сергей Пшеничный wrote:
>
> Hi! Help after link your Google Analytics and Google AdWords CAMPAIGN list 
> to get through the API using php?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/615401e4-7435-4844-8e37-fdd6394697c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Clarity on AdWords API Use

2015-09-17 Thread Brett Baggott
There are provisions for allowing others access to your API credentials but 
this is usually done for employees of your company. It doesn't sound like 
that's what's going on here. I think your instincts on this are right.

Having said that, were he an employee or contractor, and I wanted to do 
what you are talking about, it can be done and still limit access. I 
wouldn't do it for anyone that wasn't in my direct employ, but here's an 
example of a good way to limit access:

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


On Thursday, September 17, 2015 at 7:25:08 AM UTC-5, helppl...@gmail.com 
wrote:
>
> Hi there,
>
>  
>
> I have a question I'd just like to run by you which I need clarity on - I 
> know a guy who wants to use my access to the AdWords API to help populate 
> results in a tool he's building. To do so I need to apply for the token 
> through my MCC account, however, after researching a bit it doesn't sound 
> like a good idea.
>
>  
>
> 1. The tool won't be built to aide in PPC/AdWords/Campaign management. It 
> is for keyword data/search volume. This in itself seems to fly in the face 
> of the T&C's.
>
>  
>
> 2. I also do not think it common practice to let developers 'borrow' the 
> token to begin with. Should he not apply for his own?
>
>  
>
> 3. There's a lot of guidelines that Google has in its' documentation about 
> checks on the use of the API and I wouldn't have any transparency in how my 
> token will be used to ensure the tool complies. I know the likes of Moz and 
> Raven had theirs revoked at one point. I also read that their could be 
> non-compliant fees.
>
>  
>
> 4. There's no way I would want him to be able to access the many accounts 
> I manage through my MCC.
>
>  
>
> Anyway, I think I'm on the right track here and will keep reading, but 
> would love to hear other opinions.
>
>  
>
> 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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e4cc875f-82be-4638-92ee-07d94d48aa35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Anash Oommen at PubCon 2015

2015-09-14 Thread Brett Baggott
I was resolved to the fact that I'd miss this year's PubCon due to family 
obligations. However, now that I know Anash Oommen himself is going to be 
there, I'm really bummed. Those that can go should definitely take 
advantage. PubCon is the only "gotta go if possible" conference for me. 
Full disclosure, I have no association with PubCon except for attending 
about 6 of the years so far.

If you can, go.

~Brett

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/756ea827-06bc-497f-8324-45a6dca6e1f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get Keyword-level Biddingstrategies and MaxCPC with Keyword Performance Report

2015-06-26 Thread Brett Baggott
Duplicate in case you didn't get the other response:

Josh, disregard my earlier post. I just realized that I was using the 
Criteria Performance Report, which does not include any of the 
BiddingStrategy fields. In the words of Gilda Radner/Emily Litella... 
Nevermind.

On Friday, June 26, 2015 at 4:22:53 PM UTC-5, Josh Radcliff (AdWords API 
Team) wrote:
>
> Hi,
>
> Could you share your report request and the complete error you received 
> (after removing any sensitive information such as your developer token)? I 
> just tried running a KEYWORDS_PERFORMANCE_REPORT with BiddingStrategyId, 
> BiddingStrategyType, and BiddingStrategyName requested, and it worked 
> without error. The fields allowed for a given report 
> <https://developers.google.com/adwords/api/docs/appendix/reports/keywords-performance-report>
>  
> are not dependent on the data being returned, so I'd like to see your 
> request to see what went wrong. If you have an ad group ID that produced 
> this error, that would be helpful as well.
>
> Thanks,
> Josh, AdWords API Team
>
> On Friday, June 26, 2015 at 4:39:36 PM UTC-4, Brett Baggott wrote:
>>
>> Josh, I happened to be doing some coding on the Keyword Performance 
>> Report while reading this post and I attempted to get exactly the 
>> information requested by Orangevn, thinking it wouldn't be a big deal. I 
>> was surprised to find that BiddingStrategyId, BiddingStrategyName, 
>> and BiddingStrategyType, all returned Invalid Field errors for the keywords 
>> I was requesting. The CpcBidSource for all of these is returned as "ad 
>> group criteria" or "ad groups". So apparently, at least for the C# client 
>> code, these fields are invalid selectors in some cases. Yet in the two 
>> examples you give above, at least one of the BiddingStrategy fields are 
>> valid, whereas in my testing, none of those fields are valid.
>>
>> I'm assuming I will get the details of the BiddingStrategry from the 
>> criterion specified (ad group in this case), however, I'm surprised that 
>> these fields are invalid as selectors, even though they would be empty.
>>
>> On Friday, June 26, 2015 at 3:00:56 PM UTC-5, Josh Radcliff (AdWords API 
>> Team) wrote:
>>>
>>> Hi,
>>>
>>> It may help to read through our bidding guide 
>>> <https://developers.google.com/adwords/api/docs/guides/bidding>, which 
>>> explains the difference between shared bidding strategies and non-shared 
>>> strategies.
>>>
>>> Please see my answers to your specific questions below in blue.
>>>
>>> Cheers,
>>> Josh, AdWords API Team
>>>
>>> On Friday, June 26, 2015 at 5:36:18 AM UTC-4, Orangevn wrote:
>>>>
>>>> Hi all,
>>>>
>>>>  
>>>>
>>>> I have some problems when using "keyword performance report" 
>>>> service(V201502) for download keyword-level bidding strategies.
>>>>
>>>> Firstly: I can not get MaxCPC  wich keywords of Campaigns  has 
>>>> BiddingStrategry type : ManualCMP.
>>>>
>>>> How to get MaxCPC keyword in case?
>>>>
>>> You can get the CPC bid for each keyword (if present) by selecting the 
>>> CpcBid 
>>> <https://developers.google.com/adwords/api/docs/appendix/reports/keywords-performance-report#cpcbid>
>>>  field. 
>>>
>>>>  
>>>>
>>>> Secondly, How to get Keyword-level bidding strategies  with API V291502 
>>>> in cases:
>>>>
>>>>1. On server: Campaign has bidding strateries : ManualCPC 
>>>>
>>>>Adgroup has bidding strateries: Use campaign bid 
>>>> strategy
>>>>
>>>>Keyword has bidding strategies: ManualCPC.
>>>>
>>> Manual CPC is a non-shared bidding strategy, so it won't have a bidding 
>>> strategy ID. Instead, it will have a biddingStrategyType 
>>> <https://developers.google.com/adwords/api/docs/reference/v201502/AdGroupCriterionService.BiddingStrategyConfiguration#biddingStrategyType>
>>>  and 
>>> possibly a biddingScheme 
>>> <https://developers.google.com/adwords/api/docs/reference/v201502/AdGroupCriterionService.BiddingStrategyConfiguration#biddingScheme>.
>>>  
>>> You can get the bids for keywords by including the fields *CpcBid* and 
>>> *CpcBidSource* (to see if the bid is from the criterion or ad group 
>>> level) in your AdGroupCriterionService sele

Re: How to get Keyword-level Biddingstrategies and MaxCPC with Keyword Performance Report

2015-06-26 Thread Brett Baggott
Josh, disregard my earlier post. I just realized that I was using the 
Criteria Performance Report, which does not include any of the 
BiddingStrategy fields. In the words of Gilda Radner/Emily Litella... 
Nevermind.

On Friday, June 26, 2015 at 3:00:56 PM UTC-5, Josh Radcliff (AdWords API 
Team) wrote:
>
> Hi,
>
> It may help to read through our bidding guide 
> , which 
> explains the difference between shared bidding strategies and non-shared 
> strategies.
>
> Please see my answers to your specific questions below in blue.
>
> Cheers,
> Josh, AdWords API Team
>
> On Friday, June 26, 2015 at 5:36:18 AM UTC-4, Orangevn wrote:
>>
>> Hi all,
>>
>>  
>>
>> I have some problems when using "keyword performance report" 
>> service(V201502) for download keyword-level bidding strategies.
>>
>> Firstly: I can not get MaxCPC  wich keywords of Campaigns  has 
>> BiddingStrategry type : ManualCMP.
>>
>> How to get MaxCPC keyword in case?
>>
> You can get the CPC bid for each keyword (if present) by selecting the 
> CpcBid 
> 
>  field. 
>
>>  
>>
>> Secondly, How to get Keyword-level bidding strategies  with API V291502 
>> in cases:
>>
>>1. On server: Campaign has bidding strateries : ManualCPC 
>>
>>Adgroup has bidding strateries: Use campaign bid 
>> strategy
>>
>>Keyword has bidding strategies: ManualCPC.
>>
> Manual CPC is a non-shared bidding strategy, so it won't have a bidding 
> strategy ID. Instead, it will have a biddingStrategyType 
> 
>  and 
> possibly a biddingScheme 
> .
>  
> You can get the bids for keywords by including the fields *CpcBid* and 
> *CpcBidSource* (to see if the bid is from the criterion or ad group 
> level) in your AdGroupCriterionService selector 
> 
> .
>
>>Service will return:
>>
>>  BiddingStrategyId : 0
>>
>>  BiddingStrategyType "CPC"
>>
>>  
>>
>>2.  On server: Campaign has bidding strateries : Maximize 
>> click : A
>>
>>Adgroup has bidding strateries: Maximize click : B
>>
>>Keyword has bidding strategies: Use Campaign And 
>> Adgroup bid strategy
>>
>>
>>Service Will return:
>>
>>   BiddingStrategyId: Is biddingstrategyId of 
>> level Adgroup
>>
> The *Maximize click* strategy corresponds to the *shared* *TARGET_SPEND* 
> bidding strategy. Since it is shared, it *will* have a *biddingStrategyId*. 
> The parameters of the strategy will be in a TargetSpendBiddingScheme 
> ,
>  
> available in the biddingScheme 
> 
>  field.
>
>>  
>>
>>   Please show me how to get  exactly Keyword-level bidding strategies.
>>
>>  
>>
>>   Looking forward to getting your answers.
>>
>>   Thanks and best regards.
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/32f9582a-4976-4c71-be25-d54d5d5db73c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get Keyword-level Biddingstrategies and MaxCPC with Keyword Performance Report

2015-06-26 Thread Brett Baggott
Josh, I happened to be doing some coding on the Keyword Performance Report 
while reading this post and I attempted to get exactly the information 
requested by Orangevn, thinking it wouldn't be a big deal. I was surprised 
to find that BiddingStrategyId, BiddingStrategyName, 
and BiddingStrategyType, all returned Invalid Field errors for the keywords 
I was requesting. The CpcBidSource for all of these is returned as "ad 
group criteria" or "ad groups". So apparently, at least for the C# client 
code, these fields are invalid selectors in some cases. Yet in the two 
examples you give above, at least one of the BiddingStrategy fields are 
valid, whereas in my testing, none of those fields are valid.

I'm assuming I will get the details of the BiddingStrategry from the 
criterion specified (ad group in this case), however, I'm surprised that 
these fields are invalid as selectors, even though they would be empty.

On Friday, June 26, 2015 at 3:00:56 PM UTC-5, Josh Radcliff (AdWords API 
Team) wrote:
>
> Hi,
>
> It may help to read through our bidding guide 
> , which 
> explains the difference between shared bidding strategies and non-shared 
> strategies.
>
> Please see my answers to your specific questions below in blue.
>
> Cheers,
> Josh, AdWords API Team
>
> On Friday, June 26, 2015 at 5:36:18 AM UTC-4, Orangevn wrote:
>>
>> Hi all,
>>
>>  
>>
>> I have some problems when using "keyword performance report" 
>> service(V201502) for download keyword-level bidding strategies.
>>
>> Firstly: I can not get MaxCPC  wich keywords of Campaigns  has 
>> BiddingStrategry type : ManualCMP.
>>
>> How to get MaxCPC keyword in case?
>>
> You can get the CPC bid for each keyword (if present) by selecting the 
> CpcBid 
> 
>  field. 
>
>>  
>>
>> Secondly, How to get Keyword-level bidding strategies  with API V291502 
>> in cases:
>>
>>1. On server: Campaign has bidding strateries : ManualCPC 
>>
>>Adgroup has bidding strateries: Use campaign bid 
>> strategy
>>
>>Keyword has bidding strategies: ManualCPC.
>>
> Manual CPC is a non-shared bidding strategy, so it won't have a bidding 
> strategy ID. Instead, it will have a biddingStrategyType 
> 
>  and 
> possibly a biddingScheme 
> .
>  
> You can get the bids for keywords by including the fields *CpcBid* and 
> *CpcBidSource* (to see if the bid is from the criterion or ad group 
> level) in your AdGroupCriterionService selector 
> 
> .
>
>>Service will return:
>>
>>  BiddingStrategyId : 0
>>
>>  BiddingStrategyType "CPC"
>>
>>  
>>
>>2.  On server: Campaign has bidding strateries : Maximize 
>> click : A
>>
>>Adgroup has bidding strateries: Maximize click : B
>>
>>Keyword has bidding strategies: Use Campaign And 
>> Adgroup bid strategy
>>
>>
>>Service Will return:
>>
>>   BiddingStrategyId: Is biddingstrategyId of 
>> level Adgroup
>>
> The *Maximize click* strategy corresponds to the *shared* *TARGET_SPEND* 
> bidding strategy. Since it is shared, it *will* have a *biddingStrategyId*. 
> The parameters of the strategy will be in a TargetSpendBiddingScheme 
> ,
>  
> available in the biddingScheme 
> 
>  field.
>
>>  
>>
>>   Please show me how to get  exactly Keyword-level bidding strategies.
>>
>>  
>>
>>   Looking forward to getting your answers.
>>
>>   Thanks and best regards.
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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-a

Re: Simple Questions about the OAuth2 access_token and Redirect URI

2013-09-05 Thread Brett Baggott
Alan, here's a link to Google's official explanation of the different types 
of 
projects. 
I suggest that, instead of thinking of these different project types in 
relation to what _your_ application is, think of them in relation to how 
each is different. Here's my lame attempt at describing each of these 
projects in my own words:

Web Application - This is for interactive applications that are going to 
allow any user (basically) to go through your application and authorize you 
to access their account via API and then your application will do whatever 
it is designed to do, most likely interactively.
Installed Application - This is for an application that contains 
functionality that uses the Adwords API but authorization is most likely a 
one-time thing (at least in the way I think of it), probably accessing a 
specific account(s), and where authorization (or more likely refreshing of 
authorization) pretty much happens in the background.
Service Application - This is the same as the Installed Application except 
it's meant to be run on a server and therefore even less user interaction. 
There's actually some assumed authorization processes that are pretty 
different from the Installed Application but for the purposes of my example 
here, is beyond the scope of discussion.

So really I think of these different project types in terms of _how_ I'm 
going to handle authorization (i.e. interactively or "built-in").

As far as your question about the Redirect URI, think of it like the PayPal 
process. You click on a PayPal button on a website, you're taken to PayPal 
to sign in and authorize the payment, and then you are redirected at some 
point back to the vendors site so he can say Thank You. Well, in the same 
way you'd tell PayPal "here's the URI I want you to redirect to after the 
payment is processed" (i.e. my thank you page), you tell the Auth API where 
you want to redirect to after the user has authorized you to access their 
account.

Hope that helps,
~Brett

On Thursday, September 5, 2013 9:25:11 AM UTC-5, Alan Coleman wrote:
>
> Hello everyone,
>
> Apologies for my lack of understanding surrounding this topic and 
> continuous post about the basics of the protocol.
>
> I'm passing *client_id*, *client_secret* and *refresh_token* to the 
> Google OAuth2 Authorisation Server but my application is returning an *access 
> token required* error.
>
> Does the access token get returned to the Redirect URI ?
>
> If so, what do I have to do to handle the access_token at that point? Do I 
> have to store it or pass it somewhere else?
>
> Apologies again, I'm just finding all of the documentation a little 
> overwhelming. 
>
> Many 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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Google APIs Console. Web or Installed applications?

2013-09-05 Thread Brett Baggott
Alan, I suggest that, at least for your testing, you specify an "Installed" 
application, even though you may be developing a web application. The 
reason I suggest this is because you're going through the 
GetRefreshToken.php process which is intended to provide you with an Access 
Token that has already been approved (via the web as that's a part of the 
GetRefreshToken.php process) and can then be perpetually refreshed as you 
test, essentially making Auth a non-issue from that point forward (i.e. the 
system takes a look at your Refresh Token, sees that it is valid, refreshes 
it, and "auth" is done).

Now, if you are building a fully functional website that will have an 
authorization process "fronted" by your web application, then you can 
choose "Web" application and build all the web functionality necessary to 
do the auth handshake based on input from your user. However, most people 
want to get started programming against the Adwords API, such as running 
GetCampaigns to get a list of campaigns for an account, so that they can 
make sure they understand the programming necessary for the Adwords API 
_before_ they build all the website functionality necessary just to get 
past the auth process. In fact, that's exactly what I'm doing. At some 
point, I will have to build all the web pages necessary to allow a user to 
authorize my web application to access their Adwords account and at that 
time, I will change over to a "Web" application project. But right now, I 
want to focus on the code that interacts with the API because if I can't 
get that going, I'm not going to need all the auth web pages.

I hope that's clear.

I don't know why you are still having issues with "access token required" 
but I'm going to address that in your other thread. 

~Brett

On Thursday, September 5, 2013 3:57:53 AM UTC-5, Alan Coleman wrote:
>
> Hello everyone,
>
> I'm still struggling with OAuth2 Authentication, so I thought I'd go back 
> to the start and clear up any confusion.
>
> My application resides on a webserver and is run through a web browser. It 
> is not installed on any devices.
>
> When creating a Client ID in the Google APIs 
> Console, 
> which kind of application do I select?
>
>
>1. Create a Client ID for *Web* Applications
>2. Create a Client ID for *Installed* applications
>
>
> This may sound like a stupid question but I was advised on this forum to use 
> this 
> documentationwhen
>  setting up OAuth2, which suggests using Installed applications.
>
> Many 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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Trying to get clientCustomerId

2013-09-04 Thread Brett Baggott
Yes, it is true. At least that is the error I got when I tried to access 
anything other than my test account until my Developer Token was completely 
approved.

On Wednesday, September 4, 2013 8:06:59 AM UTC-5, larisa bolgova wrote:
>
>
>
> On Monday, September 2, 2013 11:44:14 AM UTC+3, Takeshi Hagikura (AdWords 
> API Team) wrote:
>>
>> Hi, 
>>
>> What account did you use when you authenticated the application?
>> And please make sure you don't explicitly pass clientCustomerId through a 
>> config file or the code. 
>>
>> FYI : You don't have to pass Selector to CustomerService.get()
>>
>> Best,
>> - Takeshi, AdWords API Team
>>
>> On Thursday, August 29, 2013 10:52:51 PM UTC+9, larisa bolgova wrote:
>>>
>>> Hi. 
>>> I can't get clientCustomerId when user authorized throught OAUth2. I 
>>> recieved clientCustomerId of my MCC test account, not a user that is 
>>> authorized.
>>> This is a part of code where i trying to get clientCustomerId. Could you 
>>> help me, where i did wrong.
>>>
>>> $client = new Google_Client();
>>> $client->setApplicationName(Settings::get('BrandName'));
>>> $client->setClientId('446749605635-');
>>> $client->setClientSecret('**');
>>> $client->setRedirectUri('my_url');
>>> $client->setDeveloperKey('*');
>>> $client->setScopes('https://adwords.google.com/api/adwords/');
>>> $client->authenticate();
>>>
>>> $arrResponse = Zend_Json::decode($client->getAccessToken());
>>> $user = new AdWordsUser();
>>> $customerService = $user->GetService('CustomerService', 
>>> 'v201306');
>>> $selector = new Selector();
>>> $selector->fields = array('clientCustomerId');
>>> $page = $customerService->get($selector);
>>> var_dump($page);
>>>
>> I used different account to authenticate application. I commented out 
> ClientCustomerID in config.ini and then i've got INCOMPLEATE SIGNUP error.
>
> Is it true that if developer token has not yet been approved, I you won't 
> be able to target non-test 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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Is IN operator working like an OR for the status field?

2013-09-04 Thread Brett Baggott
Stephane, try this instead:

Predicate predicate = new Predicate();
predicate.field = "Status";
predicate.@operator = PredicateOperator.IN;
predicate.values = new string[] {"ACTIVE", "PAUSED"};
selector.predicates = new Predicate[] {predicate};


I think the problem might be in how you have delimited your "ACTIVE, 
PAUSED" values as one value.

On Wednesday, September 4, 2013 11:12:24 PM UTC-5, Stephane wrote:
>
> Hi,
>
> We are using the dot net client library for Adwords (
> https://code.google.com/p/google-api-adwords-dotnet/)
>
> We ran into a weird behavior regarding the operator IN. We built a query 
> so we can get some metrics for campaign that have their status to ACTIVE or 
> PAUSED. To do so, we use the operator IN like CampaignStatus IN 
> {ACTIVE,PAUSED}.
>
> We would have thought that the result would be taken from campaigns that 
> are active OR paused. But the reality is that it sends only data for the 
> first predicate. 
>
> CampaignStatus IN {ACTIVE,PAUSED} -> Sends only active campaigns.
> CampaignStatus IN {PAUSED, ACTIVE} -> Sends only paused campaigns
>
> Creating two predicates results in an AND and doesn't return any data 
> since a campaign can't be active and paused at the same time.
>
> Am I missing something here? Any idea how we could create a predicate so 
> we can filter campaigns whose status are active OR paused?
>
> Thanks,
>
> Stéphane
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Global Average Position for Filtered Campaign Report

2013-09-04 Thread Brett Baggott
Stephane, if I understand you correctly, you're saying that when looking at 
your Adwords user interface, you can filter campaigns a certain way and 
when you do, you will see a "total filtered average position" represented 
as one number at the bottom of your filtered list of campaigns. However, 
when you try to run a Campaign Performance Report using the Adwords AP, 
using similar filters/predicatesI, it only shows you an average position 
per campaign without showing you an overall "total filtered average 
position"?

If I understand you correctly, I don't think you are going to find an exact 
match for that "total filtered average position" you see on the Adwords 
user interface from anything the Adwords API can provide. I absolutely 
_hate_ it when someone answers my questions by telling me I don't need what 
I'm asking for, but, I'm still going to say it, I don't think you need what 
you're asking for. If you read that article, even the per campaign average 
position can be very misleading. If you are basing decisions on some 
further "average of averages", I would think you're headed in the wrong 
direction.

I may have completely misunderstood what you're asking, and if so, my 
apologies. Also, please forgive me in advance for telling you that you 
don't need what you seem to be asking for. I really do hate it when people 
tell me that. But please, take the time to read that article.

On Wednesday, September 4, 2013 6:57:25 PM UTC-5, Stephane wrote:
>
> Hi Brett,
>
> Thanks for the reply and for your article. I agree the division isn't the 
> best idea. Actually, I'm wondering if there's a way to get the bottom line, 
> i.e. one row of result for the whole query, instead of 15 separate results 
> when we don't query any dimension. There must be a way to get only one row 
> with the desired metric. Maybe the campaign report isn't the right one to 
> query for, but I don't see what report we could use when we filter on the 
> campaign name.
>
> In short, we want to get the 1.9 of the attached file. ie. the overall 
> avg. position for the query, not all rows with every specific avg. position.
>
> Any idea is welcome!
>
> Thanks,
>
> Stéphane
>
>
>
> On Wednesday, September 4, 2013 5:46:37 PM UTC-4, Brett Baggott wrote:
>>
>> I think this article will help:
>>
>>
>> http://searchenginewatch.com/article/2257046/Say-Goodbye-to-AdWords-Average-Position-Hello-to-Top-of-Page-Rate
>>
>> I think the problem here is that you are assuming that "sum all the above 
>> and divide by 15" is the correct math. I don't think it is.
>>
>> On Wednesday, September 4, 2013 1:00:34 PM UTC-5, Stephane wrote:
>>>
>>> Hi,
>>>
>>> We are having some trouble getting the global Average position for 
>>> filtered campaigns.
>>>
>>> Here's how it goes:
>>>
>>> Report: CAMPAIGN_PERFORMANCE_REPORT 
>>>
>>> Predicates: 
>>>
>>> #1 Campaign name doesn't include "some text"
>>> #2 Ad Network is Search
>>>
>>> Fields: Average Position
>>>
>>> *Response:*
>>>
>>> 
>>> 
>>>   
>>>   
>>>   
>>> 
>>>   
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>   
>>> 
>>>
>>> Obviously, we get Avg. Position for all of our campaigns. What we want 
>>> is the global average position like we see in Adwords reports within the 
>>> "Total - filtered" row.
>>>
>>> If we sum all the above and divide the result by 15, we get 2.1, but in 
>>> Adwords, it shows 1.9 (see attached). How can we get this 1.9?
>>>
>>> Is there any way we can get that result given the predicates we have to 
>>> use? Account report doesn't work because of the campaign name filter.
>>>
>>> Any idea is appreciated. Thanks in advance.
>>>
>>> Stéphane
>>>
>>>
>>>
>>>
>>>
>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Global Average Position for Filtered Campaign Report

2013-09-04 Thread Brett Baggott
I think this article will help:

http://searchenginewatch.com/article/2257046/Say-Goodbye-to-AdWords-Average-Position-Hello-to-Top-of-Page-Rate

I think the problem here is that you are assuming that "sum all the above 
and divide by 15" is the correct math. I don't think it is.

On Wednesday, September 4, 2013 1:00:34 PM UTC-5, Stephane wrote:
>
> Hi,
>
> We are having some trouble getting the global Average position for 
> filtered campaigns.
>
> Here's how it goes:
>
> Report: CAMPAIGN_PERFORMANCE_REPORT 
>
> Predicates: 
>
> #1 Campaign name doesn't include "some text"
> #2 Ad Network is Search
>
> Fields: Average Position
>
> *Response:*
>
> 
> 
>   
>   
>   
> 
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
> 
>
> Obviously, we get Avg. Position for all of our campaigns. What we want is 
> the global average position like we see in Adwords reports within the 
> "Total - filtered" row.
>
> If we sum all the above and divide the result by 15, we get 2.1, but in 
> Adwords, it shows 1.9 (see attached). How can we get this 1.9?
>
> Is there any way we can get that result given the predicates we have to 
> use? Account report doesn't work because of the campaign name filter.
>
> Any idea is appreciated. Thanks in advance.
>
> Stéphane
>
>
>
>
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Generate URL pointing to Adwords user interface

2013-09-04 Thread Brett Baggott
I've just looked all through the Adwords API reference and I don't see any 
support for this type of information. I've looked at the Adwords user 
interface and I don't see any "hackable" URL's (for example, when you click 
on an Ad Group, it doesn't go to a URL with a parameter for AdGroupId=123. 
Therefore, I don't think you can use information you can obtain _from_ the 
Adwords API in order to do this either. Or at least it's not easily 
accomplished nor evidently provided for in the API.

I'm not saying it's impossible though, I'm saying I don't see any obvious 
support for doing what you want in the Adwords API.

Good luck,
~Brett

On Wednesday, September 4, 2013 2:30:02 PM UTC-5, ho...@laeliteppc.com 
wrote:
>
> Does someone know how to do this? Thanks!
>
> On Monday, September 2, 2013 10:47:08 PM UTC-5, ho...@laeliteppc.comwrote:
>>
>> Hello, I would like to point users from my app, to a specific AD GROUP in 
>> the Adwords user interface. How do I generate this URL using Adwords API?
>> 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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Creating site links with description

2013-09-04 Thread Brett Baggott
I just modified the .NET Client Library example to include support for Line 
2 and Line 3 using the FeedMappingService and I encountered the same error. 
I don't think they have added support for Line 2 and Line 3 into the API 
yet.

On Wednesday, September 4, 2013 10:40:02 AM UTC-5, Mariusz wrote:
>
> I am trying to create enhanced site links with additional descriptions (as 
> described here: https://support.google.com/adwords/answer/2375416) but 
> the API throws an exception: FeedMappingError.INVALID_PLACEHOLDER_FIELD @ 
> operations[0].operand.attributeFieldMappings[2].fieldId; trigger:'3' when 
> mapping placeholder fields (using FeedMappingService). For description 
> lines I am using LINE2 and LINE3 placeholders, as described here: 
> https://developers.google.com/adwords/api/docs/appendix/placeholders. 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Completed OAuth2 setup but still being asked for email and password pair

2013-09-04 Thread Brett Baggott
Are you sure your Refresh Token is still in the auth.ini file and that it's 
valid? Dig into the OAuth2Handler.php and you'll see the flow it expects. 

I still suggest you turn on logging and see if the logging sheds some light 
on it. What you're seeing now is just the default OAuth2Exception message 
and maybe the SOAP messages will have better debug info.

On Wednesday, September 4, 2013 1:27:34 PM UTC-5, Alan Coleman wrote:
>
> Many Thanks Brett,
>
> I got hold of a fresh copy of the auth.ini file from here: 
> https://code.google.com/p/google-api-adwords-php/source/browse/src/Google/Api/Ads/AdWords/auth.ini
>
> It turns out I had [OAUTH2] Commented out, which would explain why the 
> api was asking for username and password, that makes sense.
>
> So I'm one step closer, now I'm just getting this error:
>
> Your OAuth2 Credentials are incorrect. Please see the GetRefreshToken.php 
> example. access_token required.
>
> Cheers! The saga continues.
>
> On Wednesday, September 4, 2013 5:56:40 PM UTC+1, Brett Baggott wrote:
>>
>> Alan, I'm not a PHP dev but I've taken a look at the PHP Client Library 
>> and it _seems_ you've gone through the right steps. I can't imagine why 
>> you'd get the email null error using OAuth2 verification if you've gone 
>> through the steps to get a valid refresh token. Maybe this would happen if 
>> the email address for your Application associated with the refresh token 
>> was blank but that couldn't be the case.
>>
>> Anyway, the best advice I can offer you is to turn on logging in your 
>> settings.ini file and see if the log file doesn't give you a better idea of 
>> what and where it's breaking. It's helped me solve seemingly unsolvable 
>> problems.
>>
>> Hope this helps,
>> ~Brett
>>
>> On Tuesday, September 3, 2013 1:36:05 PM UTC-5, Alan Coleman wrote:
>>>
>>> Hello everyone,
>>>
>>> I have completed my OAuth2 set up but am still receiving errors asking 
>>> for the email and password pair.
>>>
>>> This was my process, as per the documentation:
>>>
>>>
>>>1. Set up an application in the API Console
>>>2. client_id and client_secret added to auth.ini
>>>3. client_id and client_secret added to GetRefreshToken.php
>>>4. Run GetRefreshToken.php through command line
>>>5. Open the supplied URL in a browser after signing in to account
>>>6. Accept when prompted
>>>7. Copy Authorization code back into command line
>>>8. Wait for refresh_token
>>>9. Copy refresh_token into auth.ini
>>>10. Run 
>>>
>>> /adwords_api_php_4.5.1/examples/AdWords/v201302/BasicOperations/GetCampaigns.php
>>>
>>>
>>> The following error is being returned to the browser:
>>>
>>> An error has occured: Validation failed for [email] with value []: email 
>>> is required and cannot be NULL.
>>>
>>> My auth.ini contains the following variables that are not coded out:
>>>
>>>
>>>1. developerToken 
>>>2. userAgent
>>>3. client_id
>>>4. client_secret
>>>5. refresh_token
>>>
>>> I simply can't believe I'm finding this so difficult, I've been hacking 
>>> away at it for weeks.
>>>
>>> As always, any help would be appreciated.
>>>
>>> Many 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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Completed OAuth2 setup but still being asked for email and password pair

2013-09-04 Thread Brett Baggott
Alan, I'm not a PHP dev but I've taken a look at the PHP Client Library and 
it _seems_ you've gone through the right steps. I can't imagine why you'd 
get the email null error using OAuth2 verification if you've gone through 
the steps to get a valid refresh token. Maybe this would happen if the 
email address for your Application associated with the refresh token was 
blank but that couldn't be the case.

Anyway, the best advice I can offer you is to turn on logging in your 
settings.ini file and see if the log file doesn't give you a better idea of 
what and where it's breaking. It's helped me solve seemingly unsolvable 
problems.

Hope this helps,
~Brett

On Tuesday, September 3, 2013 1:36:05 PM UTC-5, Alan Coleman wrote:
>
> Hello everyone,
>
> I have completed my OAuth2 set up but am still receiving errors asking for 
> the email and password pair.
>
> This was my process, as per the documentation:
>
>
>1. Set up an application in the API Console
>2. client_id and client_secret added to auth.ini
>3. client_id and client_secret added to GetRefreshToken.php
>4. Run GetRefreshToken.php through command line
>5. Open the supplied URL in a browser after signing in to account
>6. Accept when prompted
>7. Copy Authorization code back into command line
>8. Wait for refresh_token
>9. Copy refresh_token into auth.ini
>10. Run 
>
> /adwords_api_php_4.5.1/examples/AdWords/v201302/BasicOperations/GetCampaigns.php
>
>
> The following error is being returned to the browser:
>
> An error has occured: Validation failed for [email] with value []: email 
> is required and cannot be NULL.
>
> My auth.ini contains the following variables that are not coded out:
>
>
>1. developerToken 
>2. userAgent
>3. client_id
>4. client_secret
>5. refresh_token
>
> I simply can't believe I'm finding this so difficult, I've been hacking 
> away at it for weeks.
>
> As always, any help would be appreciated.
>
> Many 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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Get list of all clients

2013-09-03 Thread Brett Baggott
I'm using OAuth2 authorization so I'm not 100% sure this will work for you 
but I think you need to drop the line about the 
customerService.RequestHeader and set the Client ID for the account you 
want to get the account list for by using:

config.ClientCustomerId = "111-222-"

I just tried the ManagedCustomerService example code that I think you are 
working from and did the above and it listed all my accounts attached to my 
MCC which was the ClientCustomerId I used as above.

Hope this helps,
~Brett

On Tuesday, September 3, 2013 11:25:00 AM UTC-5, Rivka wrote:
>
> How can I get a list of all clients of an adwords account? Right now I 
> have:
>
> ManagedCustomerService customerService = 
> (ManagedCustomerService)user.GetService(AdWordsService.v201302.ManagedCustomerService);
> customerService.RequestHeader.clientCustomerId = null;
> ManagedCustomerPage customerPage = customerService.get(new 
> Selector { fields = new string[] { "Name", "CustomerId" } });
>
> but it's only returning the one client that I'm using for the ClientLogin:
>
> 
> 
> 
>
>
> How do I display *all* clients?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Best practice for making sure your local API data is up to date with live Adwords data

2013-09-03 Thread Brett Baggott
I'm going to answer my own question because I just stumbled upon the 
CustomerSyncService<https://developers.google.com/adwords/api/docs/reference/v201306/CustomerSyncService>
 that 
seems to have been made for just the sort of thing I'm trying to do. I 
guess the idea here is to start with a complete account fleshed out in 
local data as of a certain DateTime and then poll for changes as of the 
last time you polled for changes. I'm going to work this into my account 
syncing workflow and see how it goes.

Now, can I give myself points for answering my own question :)

On Tuesday, September 3, 2013 4:45:52 PM UTC-5, Brett Baggott wrote:
>
> I'm just getting started with accessing our Adwords account information 
> via the API. One of the most basic functions I'm trying to get right is 
> making sure my local data I'm basing my API updates on is current. 
> Therefore, the very first thing I do before I change anything is use 
> CampaignService to get the list of all Active Campaigns and then use the 
> CAMPAIGN_PERFORMANCE_REPORT to get all the basic Campaign info to make sure 
> I'm basing my changes on current information. For example, I don't want to 
> try to adjust the Budget up by 10% if the Budget information I'm using is 
> out-of-date and is already 10% greater. However, the CampaignService 
> doesn't allow Budget to be accessed ("selectable") so I use the 
> CAMPAIGN_PERFORMANCE_REPORT to get that information (after I've use the 
> CampaignService API to make sure my list of Active Campaigns is correct).
>
> Is this kind of workflow reasonable? Is it what you do? Any other ideas?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.