Re: including Locations when creating a campaign via REST

2022-05-11 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Matan,

The geo_target_constant report lists DMA Regions, while we don't have a CSV 
file of DMA regions.

Here's a sample REST DMA location criteria creation as an array of operations, 
I just used this in my test account:

curl -i --request POST 
https://googleads.googleapis.com/v10/customers//campaignCriteria:mutate
 \
--header "Content-Type: application/json" \
--header "login-customer-id: " \
--header "developer-token: " \
--header "Authorization: Bearer " \

--data '{
    "operations": [
          { 
                    "create": {
"campaign": "customers//campaigns/16252085032",
"location": {
                "geoTargetConstant": "geoTargetConstants/200501",
          },
           },
},
 {
          "create": {
"campaign": "customers//campaigns/16252085032",
"location": {
                "geoTargetConstant":"geoTargetConstants/200531",
          },
           },
},

    ],
"responseContentType": "MUTABLE_RESOURCE"
}
'
ref:_00D1U1174p._5004Q2aPz3F: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 
"Google Ads API and AdWords 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/gWa_K0RBQ9E500-RlmjY1rQS2B7koK-X8eVw%40sfdc.net.


Re: including Locations when creating a campaign via REST

2022-05-10 Thread 'Matan Peleg' via Google Ads API and AdWords API Forum
thanks for your reply.

Is it done via the geoTargetConstant? 
I need to add locations by DMA value. does every DMA have criterion_id? if 
so, how do know what that id is?
can I add multiple DMAs as an array?

On Wednesday, May 4, 2022 at 3:48:32 PM UTC+3 adsapi wrote:

> Hello,
>
> Thanks for reaching out. You can target locations while creating campaigns 
> by using customers.campaignCriteria.mutate 
> .
>  
> You can specify 'location' as the CampaignCriterion 
> 
>  
> in your request.
>
> Regards,
> Matt
> Google Ads API Team
>
> [image: Google Logo] 
> Matt 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2aPz3F: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 
"Google Ads API and AdWords 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/b09fd32a-bd66-40a1-ac9a-159dd3b855f6n%40googlegroups.com.


RE: including Locations when creating a campaign via REST

2022-05-04 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hello,

Thanks for reaching out. You can target locations while creating campaigns by 
using customers.campaignCriteria.mutate. You can specify 'location' as the 
CampaignCriterion in your request.

Regards,
Matt
Google Ads API Team

Matt
Google Ads API Team
ref:_00D1U1174p._5004Q2aPz3F: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 
"Google Ads API and AdWords 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/-Hv3C0RBCZKD00C5ys_JGNTkaJOlsdmuWkGg%40sfdc.net.


including Locations when creating a campaign via REST

2022-05-03 Thread 'Dev Dev' via Google Ads API and AdWords API Forum
Hola,
How can I include locations in a new project that I create via REST?
Specifically DMAs

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/b1bd57ae-0153-4975-ad51-a71d9ccd7c62n%40googlegroups.com.