Re: Error while using Google Ads API

2021-02-08 Thread Google Ads API Forum Advisor Prod
Hi Sergei,

Apart from the information provided in the thread, you may also check out these 
documentation on how you can correctly construct your requests :

REST Mutate methods
REST Design

You may also opt to use the v6 and refer to the Discovery Document for V6 
guide. I hope this helps.

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2B29KU: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/z-ueu0QO8Z1F00KwKf7C5zSz6p8z_p1M7tZw%40sfdc.net.


Re: Error while using Google Ads API

2021-02-08 Thread Jeff Moore
Here is an example call that will work, in case it helps. It creates an 
expanded text ad
/v6/customers/CUSTOMER_NUMBER/adGroupAds:mutate
{
  "operations": [
{
"create": {
"ad": {
"finalUrls": ["http://www.test.com";],
"expandedTextAd": {
"description": "test",
"headlinePart1": "RESPONSIVE_SEARCH_AD",
"headlinePart2": "par 2",
"path1": "New Ad 1",
"path2": "test 2"
  }
  },
"adGroup": "customers/CUSTOMER_ID/adGroups/AD_GROUP_ID",
"status": "PAUSED"
  }
}
  ]
}

On Monday, February 8, 2021 at 10:16:57 AM UTC-5 swi...@convoyant.com wrote:

> Sergei,
>
> We are also using raw web requests.  
>
> Our current code creates the ad thru the "customers//ads/" end 
> point, rather than "adGroupAds"
> Also, I'm not sure which of the "ads" fields are optional, but you might 
> need more than just the name.
>
> Good luck!
>
> On Monday, February 8, 2021 at 3:15:39 AM UTC-7 sergei...@gmail.com wrote:
>
>> Hi!
>>
>> We don't use any of existing client libraries of Google Ads Api.
>> In our example, we use a direct Web request to 
>> https://googleads.googleapis.com/v5/.
>>
>> The request is:
>>
>> POST 
>> https://googleads.googleapis.com/v5/customers/2794540772/adGroupAds:mutate
>>
>> Body:
>> {
>> "operations": [
>> {
>> "create": {
>> "ad": {
>> "name": "TestAdName"
>> },
>> "adGroup": "customers/2794540772 <(279)%20454-0772>/adGroups/115036497545 
>> <(503)%20649-7545>",
>> "status": "PAUSED"
>> }
>> }
>> ]
>> }
>>
>> The response - https://prnt.sc/xd7pge
>>
>> Regards,
>> Sergei
>>
>> On Friday, January 22, 2021 at 4:35:22 AM UTC+2 adsapiforumadvisor wrote:
>>
>>> Hi Sergei,
>>>
>>> So our team could get additional context about the issue, could you 
>>> provide the complete request and response 
>>> 
>>>  
>>> logs, along with the request ID, that was generated when the error occurred?
>>>
>>> If you haven't yet, logging can be enabled by navigating to the *Client 
>>> libraries > Your client library (ex. Java) > Logging* documentation, 
>>> which you can access from this link 
>>> .
>>>
>>> You may then send the requested details using the *Reply privately to 
>>> author* option.
>>>
>>> Best regards,
>>>
>>> [image: Google Logo] 
>>> Peter Laurence Napa Oliquino 
>>> Google Ads API Team 
>>>   
>>>
>>> ref:_00D1U1174p._5004Q2B29KU: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/a4a94f3b-0384-420d-9780-886dd049dd66n%40googlegroups.com.


Re: Error while using Google Ads API

2021-02-08 Thread Steve Wilcox
Sergei,

We are also using raw web requests.  

Our current code creates the ad thru the "customers//ads/" end 
point, rather than "adGroupAds"
Also, I'm not sure which of the "ads" fields are optional, but you might 
need more than just the name.

Good luck!

On Monday, February 8, 2021 at 3:15:39 AM UTC-7 sergei...@gmail.com wrote:

> Hi!
>
> We don't use any of existing client libraries of Google Ads Api.
> In our example, we use a direct Web request to 
> https://googleads.googleapis.com/v5/.
>
> The request is:
>
> POST 
> https://googleads.googleapis.com/v5/customers/2794540772/adGroupAds:mutate
>
> Body:
> {
> "operations": [
> {
> "create": {
> "ad": {
> "name": "TestAdName"
> },
> "adGroup": "customers/2794540772 <(279)%20454-0772>/adGroups/115036497545 
> <(503)%20649-7545>",
> "status": "PAUSED"
> }
> }
> ]
> }
>
> The response - https://prnt.sc/xd7pge
>
> Regards,
> Sergei
>
> On Friday, January 22, 2021 at 4:35:22 AM UTC+2 adsapiforumadvisor wrote:
>
>> Hi Sergei,
>>
>> So our team could get additional context about the issue, could you 
>> provide the complete request and response 
>> 
>>  
>> logs, along with the request ID, that was generated when the error occurred?
>>
>> If you haven't yet, logging can be enabled by navigating to the *Client 
>> libraries > Your client library (ex. Java) > Logging* documentation, 
>> which you can access from this link 
>> .
>>
>> You may then send the requested details using the *Reply privately to 
>> author* option.
>>
>> Best regards,
>>
>> [image: Google Logo] 
>> Peter Laurence Napa Oliquino 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q2B29KU: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/33ef747d-5bc1-458d-ab59-9881049694dcn%40googlegroups.com.


Re: Error while using Google Ads API

2021-02-08 Thread Sergei Kharchenko
Hi!

We don't use any of existing client libraries of Google Ads Api.
In our example, we use a direct Web request to 
https://googleads.googleapis.com/v5/.

The request is:

POST 
https://googleads.googleapis.com/v5/customers/2794540772/adGroupAds:mutate

Body:
{
"operations": [
{
"create": {
"ad": {
"name": "TestAdName"
},
"adGroup": "customers/2794540772/adGroups/115036497545",
"status": "PAUSED"
}
}
]
}

The response - https://prnt.sc/xd7pge

Regards,
Sergei

On Friday, January 22, 2021 at 4:35:22 AM UTC+2 adsapiforumadvisor wrote:

> Hi Sergei,
>
> So our team could get additional context about the issue, could you 
> provide the complete request and response 
> 
>  
> logs, along with the request ID, that was generated when the error occurred?
>
> If you haven't yet, logging can be enabled by navigating to the *Client 
> libraries > Your client library (ex. Java) > Logging* documentation, 
> which you can access from this link 
> .
>
> You may then send the requested details using the *Reply privately to 
> author* option.
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2B29KU: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/65482bc7-1163-4276-8aba-5c9bf4141cb5n%40googlegroups.com.


RE: Error while using Google Ads API

2021-01-21 Thread Google Ads API Forum Advisor Prod
Hi Sergei,

So our team could get additional context about the issue, could you provide the 
complete request and response logs, along with the request ID, that was 
generated when the error occurred?

If you haven't yet, logging can be enabled by navigating to the Client 
libraries > Your client library (ex. Java) > Logging documentation, which you 
can access from this link.

You may then send the requested details using the Reply privately to author 
option.

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2B29KU: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/XsC-10QNBDUH00EV6okTTySmOBVfwJMy6abA%40sfdc.net.