Re: how to set keyword's bid as default?

2013-04-02 Thread Takeshi Hagikura (AdWords API Team)
Hi Yu-san,

I believe basically it's correct.

As a note, when adding a keyword, you can also omit the 
BiddingStrategyConfiguration in the Keyword criterion. 
Then, the parent's AdGroup's default bid will be used.


Best,
- Takeshi, AdWords API Team

On Friday, March 29, 2013 9:15:12 PM UTC+9, 澤井悠 wrote:

 I'd like to ask about how to set keyword's bid as default (=parent ad 
 group's cpc).
 Is my understanding below correct?

 1) In case a keyword with default cpc is added by ADD operation :

 - I don't have to setBid. If I do it, I will receive the following API 
 error :BiddingError.BID_TOO_SMALL.
  

 BiddingStrategyConfiguration biddingStrategyConfiguration = new 
 BiddingStrategyConfiguration();

 CpcBid bid = newCpcBid();

 // bid.setBid(new Money(null, null)); // DO NOT setBid

 biddingStrategyConfiguration.setBids(new Bids[]{bid});

 ...


 2) In case the bid of the keyword is changed from \100 to default by SET 
 operation :

 - I have to setBid. If not, I will receive the following API error : 
 InternalApiError.UNEXPECTED_INTERNAL_API_ERROR.
  

 BiddingStrategyConfiguration biddingStrategyConfiguration = new 
 BiddingStrategyConfiguration();
 CpcBid bid = newCpcBid();
 bid.setBid(new Money(null, null)); // DO setBid 
 biddingStrategyConfiguration.setBids(new Bids[]{bid});
 ...


 Best Regards, yoroshiku onegai shimasu.
 Yu
  


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: how to set keyword's bid as default?

2013-04-02 Thread 澤井悠
Hi Hagikura-san,

Thank you for researching.
I understand they're the specs and my code was basically correct.

By the way, hopefully we will be able to see how to write code for changing 
keyword's bid to default ad group bid in the sample code of the next API 
version. :)

Best,
Yu Sawai

2013年4月2日火曜日 16時41分45秒 UTC+9 Takeshi Hagikura (AdWords API Team):

 Hi Yu-san,

 I believe basically it's correct.

 As a note, when adding a keyword, you can also omit the 
 BiddingStrategyConfiguration in the Keyword criterion. 
 Then, the parent's AdGroup's default bid will be used.


 Best,
 - Takeshi, AdWords API Team

 On Friday, March 29, 2013 9:15:12 PM UTC+9, 澤井悠 wrote:

 I'd like to ask about how to set keyword's bid as default (=parent ad 
 group's cpc).
 Is my understanding below correct?

 1) In case a keyword with default cpc is added by ADD operation :

 - I don't have to setBid. If I do it, I will receive the following API 
 error :BiddingError.BID_TOO_SMALL.
  

 BiddingStrategyConfiguration biddingStrategyConfiguration = new 
 BiddingStrategyConfiguration();

 CpcBid bid = newCpcBid();

 // bid.setBid(new Money(null, null)); // DO NOT setBid

 biddingStrategyConfiguration.setBids(new Bids[]{bid});

 ...


 2) In case the bid of the keyword is changed from \100 to default by SET 
 operation :

 - I have to setBid. If not, I will receive the following API error : 
 InternalApiError.UNEXPECTED_INTERNAL_API_ERROR.
  

 BiddingStrategyConfiguration biddingStrategyConfiguration = new 
 BiddingStrategyConfiguration();
 CpcBid bid = newCpcBid();
 bid.setBid(new Money(null, null)); // DO setBid 
 biddingStrategyConfiguration.setBids(new Bids[]{bid});
 ...


 Best Regards, yoroshiku onegai shimasu.
 Yu
  



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




how to set keyword's bid as default?

2013-03-31 Thread yu_sawai
I'd like to ask about how to set keyword's bid as default (=parent ad 
group's cpc).
Is my understanding below correct?

1) In case a keyword with default cpc is added by ADD operation :

- I don't have to setBid. If I do it, I will receive the following API 
error :BiddingError.BID_TOO_SMALL.
 

BiddingStrategyConfiguration biddingStrategyConfiguration = new 
BiddingStrategyConfiguration();

CpcBid bid = newCpcBid();

// bid.setBid(new Money(null, null)); // DO NOT setBid

biddingStrategyConfiguration.setBids(new Bids[]{bid});

...


2) In case the bid of the keyword is changed from \100 to default by SET 
operation :

- I have to setBid. If not, I will receive the following API error : 
InternalApiError.UNEXPECTED_INTERNAL_API_ERROR.
 

BiddingStrategyConfiguration biddingStrategyConfiguration = new 
BiddingStrategyConfiguration();
CpcBid bid = newCpcBid();
bid.setBid(new Money(null, null)); // DO setBid 
biddingStrategyConfiguration.setBids(new Bids[]{bid});
...


Best Regards, yoroshiku onegai shimasu.
Yu
 

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