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/<customerid>/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 
>>> <https://developers.google.com/google-ads/api/docs/concepts/curl-example#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 
>>> <https://developers.google.com/google-ads/api/docs/client-libs>.
>>>
>>> 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.

Reply via email to