Google Ads API

86 views
Skip to first unread message

章鸿

unread,
Aug 24, 2021, 12:25:31 AM8/24/21
to AdWords API and Google Ads API Forum
Hi,
I am using the reference Google ads API to create an audience of audience manager's new audience segment: website visitors type, but after the creation is successful, I find that the item of visited page is empty. Why? This is also the case when I create an official example. Please help me answer it.


This is a reference example(This example is successfully created, and the details of the visited page also have no data):
微信截图_20210824121723.png

This is the page to enter the details of the re marketing audience after successful creation:
微信截图_20210824122224.png


Please help me find out why?

Google Ads API Forum Advisor

unread,
Aug 26, 2021, 2:31:02 PM8/26/21
to scarecr...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for bringing this up. Let me raise this with my team. We will get back to you as soon as possible.

Regards,

Google Logo
Aryeh Baker
Google Ads API Team
 


ref:_00D1U1174p._5004Q2MiFRp:ref

Google Ads API Forum Advisor

unread,
Aug 26, 2021, 4:53:22 PM8/26/21
to scarecr...@gmail.com, adwor...@googlegroups.com
Hi there,

The following query should show that the rules created are there:

SELECT user_list.id, user_list.rule_based_user_list.combined_rule_user_list.left_operand.rule_item_groups, user_list.rule_based_user_list.combined_rule_user_list.left_operand.rule_type, user_list.rule_based_user_list.combined_rule_user_list.right_operand.rule_item_groups, user_list.rule_based_user_list.combined_rule_user_list.right_operand.rule_type, user_list.rule_based_user_list.combined_rule_user_list.rule_operator FROM user_list WHERE user_list.id = <list Id>

In my internal testing I was able to see that the rules were created and showed with the above mentioned query.

Feel free to get back to us if this doesn't help. 

章鸿

unread,
Aug 26, 2021, 10:32:00 PM8/26/21
to AdWords API and Google Ads API Forum
Hi,
Yes, the problem I encountered was that the example provided on the official website was successfully created, and the created combination member rules can be queried through the Google ads API, but I queried the audience details created in the Google background, but I didn't see the corresponding rule information. So that I can't confirm whether the combined audience I created meets the standards and can be used.

微信截图_20210827102753.png

I don't know if you can go to the background to query the details after you create it successfully through the API.

Cheers.
ZhangHong

Google Ads API Forum Advisor

unread,
Aug 27, 2021, 2:33:58 PM8/27/21
to scarecr...@gmail.com, adwor...@googlegroups.com
Hi ZhangHong,

I'm looking into why the user interface is not showing the rule information. In the meantime, the following modified query should return the details you're looking for:

SELECT user_list.id, user_list.rule_based_user_list.prepopulation_status, user_list.rule_based_user_list.expression_rule_user_list.rule.rule_type, user_list.rule_based_user_list.expression_rule_user_list.rule.rule_item_groups, user_list.rule_based_user_list.date_specific_rule_user_list.start_date, user_list.rule_based_user_list.date_specific_rule_user_list.rule.rule_type, user_list.rule_based_user_list.date_specific_rule_user_list.rule.rule_item_groups, user_list.rule_based_user_list.date_specific_rule_user_list.end_date, user_list.rule_based_user_list.combined_rule_user_list.rule_operator, user_list.rule_based_user_list.combined_rule_user_list.right_operand.rule_type, user_list.rule_based_user_list.combined_rule_user_list.right_operand.rule_item_groups, user_list.rule_based_user_list.combined_rule_user_list.left_operand.rule_type, user_list.rule_based_user_list.combined_rule_user_list.left_operand.rule_item_groups, user_list.type FROM user_list WHERE user_list.id = YOUR_USER_LIST_ID_HERE

Best regards,
Josh, Google Ads API Team

ref:_00D1U1174p._5004Q2MiFRp:ref

章鸿

unread,
Aug 29, 2021, 9:57:53 PM8/29/21
to AdWords API and Google Ads API Forum
Hi, Josh

The data returned by my query is this:

results {
  user_list {
    type: RULE_BASED
    rule_based_user_list {
      prepopulation_status: FINISHED
      combined_rule_user_list {
        left_operand {
          rule_type: OR_OF_ANDS
          rule_item_groups {
            rule_items {
              string_rule_item {
                operator: EQUALS
                value: "http://example.com/example1"
              }
              name: "url__"
            }
          }
        }
        right_operand {
          rule_type: OR_OF_ANDS
          rule_item_groups {
            rule_items {
              string_rule_item {
                operator: EQUALS
                value: "http://example.com/example2"
              }
              name: "url__"
            }
          }
        }
        rule_operator: AND
      }
    }
  }
}

Does this mean that the creation is successful and this audience can be used?

In addition, I hope to inform me of the results after finding a method to display the data in the user interface so that I can make corresponding repairs.


Cheers,
ZhangHong

Google Ads API Forum Advisor

unread,
Aug 30, 2021, 9:15:33 AM8/30/21
to scarecr...@gmail.com, adwor...@googlegroups.com
Hi ZangHong,

I'm checking if the UI issues are any indication of a problem with the user list. I'll get back to you on that and the UI issue as soon as I have more information.

Thanks,
Reply all
Reply to author
Forward
0 new messages