How to get AdSchedule Data and Change Bid for Adgroup / keyword - Google Ads API Beta

2019-07-24 Thread cv
Hi,

Please suggest best possible way to get Campaign Ad Schedules.
How I can get all adschedules info like Day of week, Start time, end time, 
and how much bid increase or decrease set?

Also How I can change bid for Adgroup/ keywords?

I am looking for Google Ads API beta.

Thanks,

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/75a0ff73-2513-4088-8fd8-2d786f5b5d03%40googlegroups.com.


RE: How to get AdSchedule Data and Change Bid for Adgroup / keyword - Google Ads API Beta

2019-07-24 Thread Google Ads API Forum Advisor Prod
Hi,

Thank you for reaching out. You could use the ad_schedule_view resource to get 
Campaign Ad Schedule information in Google Ads API. The attribute resource 
‘campaign_criterion’ selectable with ad_schedule_view will provide all the 
information like 
campaign_criterion.ad_schedule.day_of_week,campaign_criterion.ad_schedule.start_hour,
 campaign_criterion.ad_schedule.end_hour,campaign_criterion.bid_modifier.

For your other concern , you could use AdGroupBidModifierService to change the 
bid for Adgroup level. Refer to this code sample to add bid modifier at Ad 
group level. Also, you could use AdGroupCriterionService to mutate bids at 
criterion(keyword) level. Please refer to the migration document for the 
equivalent services in Google Ads API. Let us know if you need additional 
information.

Regards,
Nikisha Patel, Google Ads API Team
ref:_00D1U1174p._5001UEGEyi:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/SkgOt0PV61I400c-GCiNXYTSyCObWeFKdUrA%40sfdc.net.


Re: How to get AdSchedule Data and Change Bid for Adgroup / keyword - Google Ads API Beta

2019-07-25 Thread cv
Hello Nikisha,

I can able to get campaign criteria.

But, I think that example for AddAdGroupBidModifier is not useful.

I wanted to change AdGroup CPC itself and not the its criteria. Please let 
me know If i am wrong.

Thanks,


On Thursday, 25 July 2019 03:09:58 UTC+5:30, adsapiforumadvisor wrote:
>
> Hi,
>
> Thank you for reaching out. You could use the ad_schedule_view 
>  
> resource to get Campaign Ad Schedule information in Google Ads API. The 
> attribute resource ‘campaign_criterion’ 
>  
> selectable with ad_schedule_view will provide all the information like 
> campaign_criterion.ad_schedule.day_of_week 
> 
> ,campaign_criterion.ad_schedule.start_hour 
> ,
>  
> campaign_criterion.ad_schedule.end_hour 
> 
> ,campaign_criterion.bid_modifier 
> 
> .
>
> For your other concern , you could use AdGroupBidModifierService 
> 
>  
> to change the bid for Adgroup level. Refer to this code 
> 
>  
> sample to add bid modifier at Ad group level. Also, you could use 
> AdGroupCriterionService 
> 
>  
> to mutate bids at criterion(keyword) level. Please refer to the migration 
>  
> document for the equivalent services in Google Ads API. Let us know if you 
> need additional information.
>
> Regards,
> Nikisha Patel, Google Ads API Team
>
>
> ref:_00D1U1174p._5001UEGEyi:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/749177eb-e95c-4768-acc8-9a2825e4ac7d%40googlegroups.com.


Re: How to get AdSchedule Data and Change Bid for Adgroup / keyword - Google Ads API Beta

2019-07-25 Thread cv
I was looking at similar example like Adwords API lib which is 
UpdateAdgroup.php

Thanks,

On Thursday, 25 July 2019 16:55:39 UTC+5:30, cv wrote:
>
> Hello Nikisha,
>
> I can able to get campaign criteria.
>
> But, I think that example for AddAdGroupBidModifier is not useful.
>
> I wanted to change AdGroup CPC itself and not the its criteria. Please let 
> me know If i am wrong.
>
> Thanks,
>
>
> On Thursday, 25 July 2019 03:09:58 UTC+5:30, adsapiforumadvisor wrote:
>>
>> Hi,
>>
>> Thank you for reaching out. You could use the ad_schedule_view 
>>  
>> resource to get Campaign Ad Schedule information in Google Ads API. The 
>> attribute resource ‘campaign_criterion’ 
>>  
>> selectable with ad_schedule_view will provide all the information like 
>> campaign_criterion.ad_schedule.day_of_week 
>> 
>> ,campaign_criterion.ad_schedule.start_hour 
>> ,
>>  
>> campaign_criterion.ad_schedule.end_hour 
>> 
>> ,campaign_criterion.bid_modifier 
>> 
>> .
>>
>> For your other concern , you could use AdGroupBidModifierService 
>> 
>>  
>> to change the bid for Adgroup level. Refer to this code 
>> 
>>  
>> sample to add bid modifier at Ad group level. Also, you could use 
>> AdGroupCriterionService 
>> 
>>  
>> to mutate bids at criterion(keyword) level. Please refer to the migration 
>>  
>> document for the equivalent services in Google Ads API. Let us know if you 
>> need additional information.
>>
>> Regards,
>> Nikisha Patel, Google Ads API Team
>>
>>
>> ref:_00D1U1174p._5001UEGEyi:ref
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/da698edc-e9f5-470b-b732-8fdba24a55c1%40googlegroups.com.


Re: How to get AdSchedule Data and Change Bid for Adgroup / keyword - Google Ads API Beta

2019-07-25 Thread Google Ads API Forum Advisor Prod
Hi,

Thanks for the clarification. To update the Cpc bid for Adgroup you need to use 
Fieldmask utility to derive the update mask which will tell Google Ads API 
which attribute of Ad Group will be updated. Please refer to the similar code 
Update Ad Group in Google Ads API to update CPC bid.

Regards,
Nikisha Patel, Google Ads API Team
ref:_00D1U1174p._5001UEGEyi:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9wfQw0PV7Q3E00bWyHj62nR0Oo4S8v8O3aPQ%40sfdc.net.


Re: How to get AdSchedule Data and Change Bid for Adgroup / keyword - Google Ads API Beta

2019-07-26 Thread cv
Thanks For the Information.

I was able to change the BID.

Now I have step forward and tried to change Bid for the Device.

I have done like this But this gives me Segmentation Fault: 11

$bidModifierValue = 1.5;
$adGroupBidModifier = new AdGroupBidModifier([
'ad_group' => new StringValue(
['value' => ResourceNames::forAdGroup($customerId, 
$adGroupId)]
),
'bid_modifier' => new DoubleValue(['value' => 
$bidModifierValue]),
'device' => new DeviceInfo(['type' => Device::MOBILE])
]);

print_r($adGroupBidModifier);exit;
// Creates an ad group bid modifier operation for creating an 
ad group bid modifier.
$adGroupBidModifierOperation = new 
AdGroupBidModifierOperation();
$adGroupBidModifierOperation->setUpdate($adGroupBidModifier);

$adGroupBidModifierOperation->setUpdateMask(FieldMasks::allSetFieldsOf($adGroupBidModifier));

// Issues a mutate request to add the ad group bid modifier.
$adGroupBidModifierServiceClient = 
$googleAdsClient->getAdGroupBidModifierServiceClient();
$response = 
$adGroupBidModifierServiceClient->mutateAdGroupBidModifiers(
$customerId,
[$adGroupBidModifierOperation]
);

thanks,


On Friday, 26 July 2019 00:58:40 UTC+5:30, adsapiforumadvisor wrote:
>
> Hi,
>
> Thanks for the clarification. To update the Cpc bid for Adgroup you need 
> to use Fieldmask utility to derive the update mask which will tell Google 
> Ads API which attribute of Ad Group will be updated. Please refer to the 
> similar code Update Ad Group 
>  
> in Google Ads API to update CPC bid.
>
> Regards,
> Nikisha Patel, Google Ads API Team
>
>
> ref:_00D1U1174p._5001UEGEyi:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/367f90ae-4884-4e1f-86e9-5d068bbee257%40googlegroups.com.


Re: How to get AdSchedule Data and Change Bid for Adgroup / keyword - Google Ads API Beta

2019-07-26 Thread Google Ads API Forum Advisor Prod
Hi,

Thank you for reaching support. Could you please share the complete request and 
response logs along with the client customer Id for me to investigate further? 
Please use Reply privately to author option while sharing the details.

Regards,
Nikisha Patel, Google Ads API Team
ref:_00D1U1174p._5001UEGEyi:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/C0b9o0PV9LX500VLSsAXIISzeisIqNRh-zsA%40sfdc.net.


Re: How to get AdSchedule Data and Change Bid for Adgroup / keyword - Google Ads API Beta

2019-07-30 Thread cv
Hi,

I have shared the response privately.

Thanks,


On Wednesday, 24 July 2019 16:03:52 UTC+5:30, cv wrote:
>
> Hi,
>
> Please suggest best possible way to get Campaign Ad Schedules.
> How I can get all adschedules info like Day of week, Start time, end time, 
> and how much bid increase or decrease set?
>
> Also How I can change bid for Adgroup/ keywords?
>
> I am looking for Google Ads API beta.
>
> Thanks,
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6adfca9e-6f2e-45aa-9405-708f92e8a41b%40googlegroups.com.