set devices while doing mutate campaignCriterion operation

2020-04-09 Thread Afsane Ghafoori
Hi there,

I want to set devices for the campaign while create and I am using the 
mutate operation. based on documentation at campaignCriterion operation I 
should be able to set Device criterion,

https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v2.resources#google.ads.googleads.v2.resources.CampaignCriterion

 but when I tried that I got this error:

This operator cannot be applied to a criterion of this type


 I read other posts and based on this link, it was mentioned in order to 
exclude a device, we need to set the bid_modifier to 0 for those criterion 
ids

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

> To target only Computer devices and opt out of Tablet and HighEndMobile 
> platforms, you need to use CampaignCriterionService to set the bidModifier 
> to 0.0 for CriterionIds 30001 and 30002. A bidModifier of 0.0 corresponds 
> to -100%, which is used for opting out of a platform. You can set the 
> required bid for CriterionId 3 which corresponds to the 
> Computer(Desktop) platform. 



given the fact that criterion id can not set in mutate operation, Could you 
please guide me on how to set bid_modifier to 0 for devices I want to 
exclude while creating the campaign?

 

> criterion_id 
>
> Int64Value 
> 
>
> Output only. The ID of the criterion.
>
> This field is ignored during mutate.
>


 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/9a88bfc4-3c93-43c7-9f38-808486c0f36f%40googlegroups.com.


get custom affinity list via google ads api

2020-04-01 Thread Afsane Ghafoori
Hi there,

I want to get the list of custom affinity (and custom intent) by API, like 
the attached image.
Could you help me what is the API to get that list?

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/11f76513-b777-4d73-a52c-24b6031fa80c%40googlegroups.com.


ad_group_extension_setting_operation mutate operation problem

2020-02-04 Thread Afsane Ghafoori
Hello there,

I have a problem with creating *ad_group_extension_setting_operation* in 
bulk operation.
This operation needs to have resource names for *extension_feed_items[] *and* 
ad_group.*
which *extension_feed_items[]* can be generated by running another 
operation named *extension_feed_item_operation*
based on google documents, I should be able to create the 
*ad_group_extension_setting_operation* by assigning some negative temporary 
ids as resource names and when all the operations are done the real 
resource names should be replaced. but when the 
ad_group_extension_setting_operation 
mutate operation is running, it raises an error about not having the real 
resource names for* extension_feed_items[]* and it doesn't create with 
temporary resource names. It also happens for a temporary resource name for 
*ad_Group* in this operation.
So it seems unless other operations, this operation doesn't work with 
temporary ids

Can you help me with my issue? 


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2bcaf08d-006f-4dbd-9d0d-12a8789e936f%40googlegroups.com.


Re: Google Ads: GeoTargetConstant service - ability to search worldwide

2019-11-04 Thread Afsane Ghafoori
Hello there,

I have the same problem. I tried to call the "suggestGeoTargetConstants" method 
without passing the country code but it didn't work. this is the request I 
passed to the method:

const suggestGeoTargetConstantsRequest = {
geo_targets: ["geoTargetConstants/9060871"]
};

and I got this error: "3 INVALID_ARGUMENT: The country code is invalid. 

even when I set the request with the country_code like the image below, the 
return result data is empty! 
could you help me, how should I set the request to receive suggestion 
around the world?


const suggestGeoTargetConstantsRequest = {
locale: "au",
countryCode: "AU",
geo_targets: [
"geoTargetConstants/9056922"
]
}



On Friday, June 28, 2019 at 5:44:00 AM UTC+10, adsapiforumadvisor wrote:
>
> Hi,
>
> Thank you for reaching support. With regards to your concern, the 
> equivalent for getting the geo_location worldwide in Google Ads API is to 
> use geo_target_constant 
>  
> resource. You could search the geo_locations without specifying the country 
> code which will give you location name in all regions worldwide. Let us 
> know if you need additional information.
>
> Regards,
> Nikisha Patel, Google Ads API Team
>
>
> ref:_00D1U1174p._5001UCZmou: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/95438331-7a29-4f93-b53a-60280892dc44%40googlegroups.com.


Re: Google Ads: GeoTargetConstant service - ability to search worldwide

2019-11-04 Thread Afsane Ghafoori
Hello there,

I have the same problem. I tried to call the "suggestGeoTargetConstants" method 
without passing the country code but it didn't work. Did you find the 
solution?

On Thursday, June 27, 2019 at 7:01:33 PM UTC+10, integrations bidalgo wrote:
>
> Hello,
>
>
> In AdWords API we had ability to search geo locations worldwide (without 
> specifying country code).
>
> In GoogleAds country code is required parameter:
>
>
> $response = $this->geoTargetConstantServiceClient->suggestGeoTargetConstants(
> new StringValue(['value' => 'en']),
> new StringValue(['value' => 'US']),
> ['locationNames' => new LocationNames(['names' => [$names]])]
> );
>
>
> Is there still an opportunity to search worldwide in GoogleAds?
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/371f1805-2bbe-45b5-855b-f6a7879af4db%40googlegroups.com.