how to create product group use ads api

113 views
Skip to first unread message

adske...@gmail.com

unread,
Apr 26, 2019, 6:18:39 AM4/26/19
to AdWords API and Google Ads API Forum

i want create a shopping ad use ads api,but it always reporting mistakes with 'RESOURCE_NOT_FOUND'  when i create shopping ad  ,i don't know  what's happen,I wonder if it's because I didn't create the product group,But I didn't find a way to create product groups in the API.I successfully created the AD group, but this error let me do not know what to do next.Here is my code and error report
20190426144006.png
20190426145155.png

googleadsapi...@google.com

unread,
Apr 26, 2019, 12:38:28 PM4/26/19
to adske...@gmail.com, AdWords API and Google Ads API Forum
Hello,

Can you please reply privately to author your API request and response that you received this error for?

Thanks,
Anthony
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 04/26/19 02:53:58 adske...@gmail.com wrote:

i want create a shopping ad use ads api,but it always reporting mistakes with 'RESOURCE_NOT_FOUND'  when i create shopping ad  ,i don't know  what's happen,I wonder if it's because I didn't create the product group,But I didn't find a way to create product groups in the API.I successfully created the AD group, but this error let me do not know what to do next.Here is my code and error report

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/ccc489b8-126c-488c-8bd1-638b41a1e741%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

adske...@gmail.com

unread,
Apr 28, 2019, 2:19:52 AM4/28/19
to AdWords API and Google Ads API Forum
{
  "error": {
    "code": 404,
    "message": "Requested entity was not found.",
    "status": "NOT_FOUND",
    "details": [
      {
        "errors": [
          {
            "errorCode": {
              "requestError": "BAD_RESOURCE_ID"
            },
            "message": "'' part of the resource name is invalid.",
            "location": {
              "fieldPathElements": [
                {
                  "fieldName": "operations",
                  "index": "0"
                },
                {
                  "fieldName": "create"
                },
                {
                  "fieldName": "resource_name"
                }
              ]
            }
          }
        ]
      }
    ]
  }
}
this is my error. I don't know the correct format of creating ads group ads resource_name, could you please give me an example? Thank you

在 2019年4月27日星期六 UTC+8上午12:38:28,googleadsapi-forumadvisor写道:

googleadsapi...@google.com

unread,
Apr 29, 2019, 11:26:03 AM4/29/19
to AdWords API and Google Ads API Forum
Hello,

The BAD_RESOURCE_ID error shows us when the resource name provided is malformed. The AdGroup resource name should be built with the budgetResourceName and campaignResourceName as shown in this code sample. Please give it a try and let me know if you have any further questions.

Regards,
Sai Teja, Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:

http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

Reply all
Reply to author
Forward
0 new messages