Re: How to set the language of the campaign to another language

2022-01-03 Thread simo mazraoui
Got it, Thank you soo much for your help 

On Monday, 3 January 2022 at 16:51:56 UTC+1 adsapi wrote:

> Hi Simo,
>
> Each mutateOperation has its own enclosure and is added inside the 
> brackets, you can put in multiple campaign criterion without issue. I 
> tested the below sample and it works: 
>
>
> --data '{
> "mutateOperations": [
>   {
> "campaignBudgetOperation": {
>   "create": {
> "resourceName": "customers/{CID}/campaignBudgets/-1",
> "name": "My Campaign Budget",
> "deliveryMethod": "STANDARD",
> "amountMicros": 500,
> "explicitlyShared": false
>   }
> }
>   },
>   {
> "campaignOperation": {
>   "create": {
> "resourceName": "customers/{CID}/campaigns/-2",
> "status": "ENABLED",
> "advertisingChannelType": "SEARCH",
>  "geoTargetTypeSetting":{
> "positiveGeoTargetType": "PRESENCE_OR_INTEREST"
> },
> "networkSettings": {
> "targetGoogleSearch": true,
> "targetSearchNetwork": true,
> "targetContentNetwork": true,
> "targetPartnerSearchNetwork": false
> },
> "name": "My campaign",
> "campaignBudget": "customers/{CID}/campaignBudgets/-1",
>"manualCpc": {
>  "enhancedCpcEnabled": true
>  },
> "startDate": "2022-11-25",
> "endDate": "2022-11-30"
>   }
> }
>   },
>   {
> "campaignCriterionOperation": {
>   "create": {
> "campaign":"customers/{CID}/campaigns/-2",
> "location":{
> "geoTargetConstant": "geoTargetConstants/9050637"
> }
>   }
> }
>   },
>   {
> "campaignCriterionOperation": {
>   "create": {
> "campaign":"customers/{CID}/campaigns/-2",
> "location":{
> "geoTargetConstant": "geoTargetConstants/9050703"
> }
>   }
> }
>   }
> ],
> "responseContentType": "MUTABLE_RESOURCE"
> }
> '
>
> You can also create many campaigns without issue in the same request, just 
> using a different negative number as temporary resourceName 
> 
>  
> so that criteria for each campaign can be created with campaign creation. 
> Feel free to get back to us.
>
> Regards,
>  
> [image: Google Logo] 
> Aryeh Baker 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2MlBpO: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/c5fa40e3-8963-489c-8b95-8f2dd1e37376n%40googlegroups.com.


Re: How to set the language of the campaign to another language

2022-01-03 Thread simo mazraoui
Hi, 

Thank you for the reply.

I know about this solution, but my idea is to set multiple locations like 
your example but with Grouped operations (*googleAds:mutate* 

).

is this possible ??

thank youu 



On Monday, 3 January 2022 at 08:56:02 UTC+1 adsapi wrote:

> Hi Simo,
>
> Thank you for your follow up.
>
> Below is an example on how you can include at least 2 create operations 
> when creating your location campaign criteria :
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *curl -i --request POST 
> "https://googleads.googleapis.com/v9/customers/YOUR_CUSTOMER_ID/campaignCriteria:mutate
>  
> "
>  
> \ --header "Content-Type: application/json" \ --header "developer-token: 
> YOUR_DEVELOPER_TOKEN" \ --header "login-customer-id: 
> YOUR_LOGIN_CUSTOMER_ID" \ --header "Authorization: Bearer 
> YOUR_ACCESS_TOKEN" \ --data '{ "operations": [ {   "create" : { 
>   "negative": "false",   "campaign": 
> "customers/YOUR_CUSTOMER_ID/campaigns/YOUR_CAMPAIGN_ID",   
> "location": { "geoTargetConstant": 
> "geoTargetConstants/THE_GEO_CONSTANT_1"   },  }, }, 
> {   "create" : {   "negative": "false",   
> "campaign": "customers/YOUR_CUSTOMER_ID/campaigns/YOUR_CAMPAIGN_ID",   
> "location": { "geoTargetConstant": 
> "geoTargetConstants/THE_GEO_CONSTANT_2"   },  }, },  ] 
> }'*
>
> Let me know if this helps.
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2MlBpO: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/c8cf2f98-2533-4bf5-bf7d-abb097688f20n%40googlegroups.com.


Re: How to set the language of the campaign to another language

2021-12-31 Thread simo mazraoui
Hi, 

Thank you for the update.

I already know about this format, but I want to make multiple languages 
using Grouped operation 
s
 
method

Thank you

On Friday, 31 December 2021 at 02:11:13 UTC+1 adsapi wrote:

> Hi Simo,
>
> Thank you for raising your follow up question.
>
> I would suggest to follow this format 
>  for 
> creating multiple entities in one operation. Let me know if you have 
> questions with the provided sample.
>
> Regards,
> [image: Google Logo] 
> Ernie John Blanca Tacata 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2MlBpO: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/2b54a3ea-36aa-4ff4-8e6e-2918ca9aac6an%40googlegroups.com.


Re: How to set the language of the campaign to another language

2021-12-30 Thread simo mazraoui
Hi,

Please I have a question, how to send the same request, but with multiple 
Languages, can I do like that: 

{
   'campaignCriterionOperation':[
  'create': {
   'campaign': 'customers/${CUSTOMER_ID}/campaigns/-2',
  'language': {
  'languageConstant': 'languageConstants/1005'
  }
 },
 'create': {
   'campaign': 'customers/${CUSTOMER_ID}/campaigns/-2',
  'language': {
  'languageConstant': 'languageConstants/1006'
  }
 }
  ]
}

Regards,

On Thursday, 9 September 2021 at 15:49:44 UTC+1 adsapi wrote:

> Hi Ryo,
>
> I work with Ernie and will assist you. Thank you for giving us the logs. 
> To set Japanese as the language, you can add to the "Grouped operations 
> "
>  
> inside 'mutateOperations': [] like this: 
>
>
> {
>'campaignCriterionOperation':{
>   'create': {
>'campaign': 'customers/${CUSTOMER_ID}/campaigns/-2',
>   'language': {
>   'languageConstant': 'languageConstants/1005'
>   }
>  }
>   }
> }
>
> I tried it and it worked. Feel free to get back to us.
>
> Regards,
>
> [image: Google Logo] 
> Aryeh Baker 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2MlBpO: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/8101954b-fb6d-46f7-a995-f34ced159344n%40googlegroups.com.


Create New Smart Campaign Shopping Ads

2021-11-12 Thread simo mazraoui
Hello guys

I try to create a smart campaign shopping ads, but I receive an error say:

*The required field was not present., at 
operations[0].create.campaign_bidding_strategy*

Header:

developer-token:{{AUTH_DEVELOPER_TOKEN}} 
login-customer-id:{{MANAGER_CUSTOMER_ID}} Content-Type:application/json

Req: 

{
  "operations": [
{
"create": {
"name": "First Campaign From POSTMAN",
"status": "PAUSED",
"advertising_channel_type": "SHOPPING",
"advertising_channel_sub_type": "SHOPPING_SMART_ADS",
"shopping_setting": {
"merchant_id":"{{MERCHANT_ID}}",
"sales_country":"US"
},
"campaign_budget": "/customers/{{CUSTOMER_ID}}
/campaignBudgets/9878129176",
"start_date": "2021-11-12",
"end_date": "2021-11-14"
}
}
  ],
  "partial_failure": true,
  "validate_only": false,
  "response_content_type": "MUTABLE_RESOURCE"
}
Res:

{
"results": [
{}
],
"partialFailureError": {
"code": 3,
"message": "The required field was not present., at 
operations[0].create.campaign_bidding_strategy",
"details": [
{
"@type": 
"type.googleapis.com/google.ads.googleads.v9.errors.GoogleAdsFailure",
"errors": [
{
"errorCode": {
"fieldError": "REQUIRED"
},
"message": "The required field was not present.",
"trigger": {
"stringValue": ""
},
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
},
{
"fieldName": "create"
},
{
"fieldName": "campaign_bidding_strategy"
}
]
}
}
]
}
]
}
}

I hope someone can help to fix this
Thank you

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6289f441-3adc-4a46-801b-606123343269n%40googlegroups.com.