shopping campaigns - how to assemble Ad Group with bids per item id

84 views
Skip to first unread message

onetes...@gmail.com

unread,
Nov 6, 2016, 10:16:34 PM11/6/16
to AdWords API Forum
Excuse the question, but I did several tests and could only create the campaign and the group. Must include products with specific Id item, each item id with a different bid. Then I need to be able to update these items, including or excluding items and changing bids.
If there are examples with php library please send the link. Thank you.

Joyce Lava

unread,
Nov 7, 2016, 1:19:58 AM11/7/16
to AdWords API Forum
Hello,

What I am aware of is you can set the bid at ProductBiddingCategory as you may find in this example code. However, could you please try to create a ProductPartition where the caseValue is a ProductDimension of type ProductOfferId, then set the ProductOfferId.value as the Merchant Center product Id and let me know the results? You may use the example code as a reference to do so.

You may also find this documentation helpful.

Regards,
Joyce, AdWords API Team

onetes...@gmail.com

unread,
Nov 9, 2016, 8:00:58 AM11/9/16
to AdWords API Forum
Hello,
It was successful using the example class as follows:

      $root = $helper->createSubdivision();

      $helper->createUnit($root, new ProductOfferId('xxx'), 200000);
      $helper->createUnit($root, new ProductOfferId('yyy'), 300000);
      $helper->createUnit($root, new ProductOfferId('zzz'), 400000);
      $helper->createUnit($root, new ProductOfferId());
      
      // Make the mutate request.
      $result = $adGroupCriterionService->mutate($helper->getOperations());

Now I'm looking for references to change or remove these products and bids. Do you have any sample topics? Do I have to delete the whole group and create it again?

Thank you.

Joyce Lava

unread,
Nov 9, 2016, 9:35:46 PM11/9/16
to AdWords API Forum
Hello,

To update the bids of each itemId, you may go through this previous forum discussion and let me know if this helps.

You would have to generate the Product Partition Report to get the Id of the items and set that as the productPartitionId when calling the SET operator of the AdGroupCriterionService.mutate with BiddableAdGroupCriterion. I recommend trying it first against a test account.

onetes...@gmail.com

unread,
Nov 23, 2016, 7:47:55 AM11/23/16
to AdWords API Forum
Hello,

Your tips were very important. Apparently it worked perfectly.

Thank you very much.
Reply all
Reply to author
Forward
0 new messages