Planning to implement campaign creation on specific Products but cant get clear idea

97 views
Skip to first unread message

Abhishek Yadav

unread,
Jul 31, 2023, 6:30:14 AM7/31/23
to Google Ads API and AdWords API Forum
Hi ,

I am trying to implement campaing creation for specific products via Ads API.

Though i have refer docs but that is something unclear to me possibly as the terminology and hierarchy of the ads are new to me.

Would be helpful if i can have the example to create campaign with specific products and i am preferring REST API.

Thanks in Advance

Google Ads API Forum Advisor

unread,
Jul 31, 2023, 10:21:08 AM7/31/23
to abhi...@conversios.io, adwor...@googlegroups.com

Hi,

Thank you for reaching out to Google Ads API Forum.



Would be helpful if i can have the example to create campaign with specific products and i am preferring REST API.

>> With regards to your concern, you may use the REST method customers.campaigns.mutate to create, update, or remove campaigns. You may also utilize the api explorer customers.campaigns.mutate to test out the method. Additionally, for your reference, you may refer to the Campaign Management guide for an overview of Campaigns in Google Ads API.

For the specifics of a Shopping Campaign, you may refer to this guide.

Let us know if you have further questions and clarifications.
 

This message is in relation to case "ref:_00D1U1174p._5004Q2nZH6x:ref"

Thanks,
 
Google Logo Google Ads API Team


Abhishek Yadav

unread,
Aug 3, 2023, 3:52:33 AM8/3/23
to Google Ads API and AdWords API Forum
Hi ,

Thanks for Reverting i have already gone through some of the docs but that is not clear enough.

Would be good to have brief insights to create Pmax campaign for selective products or group of products via API if there are example with google ads api library then also it would be helpful to understand.

As the Hierarchy of the Listing Group, Listing Group Filters and ListingGroupFiltersDImension does not have clear description how that are interconnected.

Would be helpful for the insights. 

Google Ads API Forum Advisor

unread,
Aug 3, 2023, 6:22:42 AM8/3/23
to abhi...@conversios.io, adwor...@googlegroups.com

Hi,

Thanks for getting back to us.

With regards to Performance Max campaigns, you may refer to this guide regarding Overview of Performance Max campaigns. You may also refer to this code example. This example shows how to create a Performance Max campaign.

With regards to the hierarchy, you may refer to this guide regarding Creating Shopping Listing Groups. For your reference, you may also refer to this code example regarding Adding Performance Max Product Listing Group Tree.



Let us know if you have further questions and clarifications.
 

Abhishek Yadav

unread,
Aug 3, 2023, 7:46:11 AM8/3/23
to Google Ads API and AdWords API Forum
Hi ,

Thanks for reverting back ! 

I was watching the videos to have some insights for the same so i have some insights on the structure how that functions.

I am certainly looking for a way to create Pmax campaign retail ,the main concern is to create pmax campaign for shopping vertical along with selective products,via google ads api.

I also had some insights that we need to create some nodes based on the selective product ids in assetGroupListingGroupFilters.

So would be good to have full functional example in REST API as i have some unclear things regarding temporary ID that we are create for the entities like asset groups. 

Google Ads API Forum Advisor

unread,
Aug 3, 2023, 1:08:29 PM8/3/23
to abhi...@conversios.io, adwor...@googlegroups.com
Hi,

Thank you for returning to our team.

With regards to your concern, I am afraid that we can't provide a ready made Rest API code. However, I would suggest referring to this Rest API method (https://developers.google.com/google-ads/api/rest/reference/rest/v14/customers.assetGroupListingGroupFilters/mutate) for mutating asset group listing group filters via Rest API and also using this API explorer (https://developers.google.com/google-ads/api/rest/reference/rest/v14/customers.assetGroupListingGroupFilters/mutate?apix=true) as this will surely help you construct your request properly.

I would highly suggest also referring to the below guides as these will really help you regarding this matter:
Let us know if you have further questions.

Abhishek Yadav

unread,
Aug 4, 2023, 2:36:54 AM8/4/23
to Google Ads API and AdWords API Forum
Hi ,

Thanks i have already gone through that with details.

can you clarify that if i want to create Pmax campaign for selective product/s in that in the method of the assetGroupListingGroupFilters with FilterType of ProductItemId can i pass an array for multiple ids or i can only give single ids in that ? 

Google Ads API Forum Advisor

unread,
Aug 4, 2023, 8:11:06 AM8/4/23
to abhi...@conversios.io, adwor...@googlegroups.com

Hi,

Thank you for responding back.

As per the AssetGroupListingGroupFilterOperation, you may create an array of operations in a single request. However, you may specify only one ProductItemId for each operation. I will suggest utilizing the API explorer (https://developers.google.com/google-ads/api/rest/reference/rest/v14/customers.assetGroupListingGroupFilters/mutate?apix=true) also provided in our previous response to customize and validate your requests.

Abhishek Yadav

unread,
Aug 7, 2023, 3:44:01 AM8/7/23
to Google Ads API and AdWords API Forum
Hi ,

I tried with that but getting the error for parent listing filter.

The concern is that if i have 100 products and for some products i need to create pmax campaign for shopping vertical how the root nodes or nodes to be created that i am not getting clearly as the listing dimension is Product Item Id.

I am using Rest API possibly do i need to start with creating the root node and further on with inclusive other selective products .?

In the docs it has been mentioned that if you're creating the root node then dont pass anything for the type  parameter but still the REST API gives error for the same.

would be good to have some detailed insights and pls dont share the docs link that are not that much clear and good enough to give insights for the same.

Google Ads API Forum Advisor

unread,
Aug 7, 2023, 7:16:43 AM8/7/23
to abhi...@conversios.io, adwor...@googlegroups.com

Hi,

Thank you for getting back to us.

I understand that you are getting the error for parent listing filter and the REST API gives an error when you are not passing anything for TYPE parameter. Can you please provide us with the complete logs(request and response with request ID) of these requests so we can investigate further the errors being thrown and provide you with precise guidance and recommendations?

If you are using a Client Library and haven't enabled logging yet, it can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation(via this link https://developers.google.com/google-ads/api/docs/best-practices/logging#client_library_logging), which you can access from this link. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can provide it via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com

Reply all
Reply to author
Forward
0 new messages