Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Is the effect the same when the object is empty or does not exist?

20 views
Skip to first unread message

xiaochuan li

unread,
Apr 18, 2025, 6:48:41 AMApr 18
to Google Ads API and AdWords API Forum
When I compared the fields of the existing ad_group and the ad_group created using the API, I found an empty object.

```
results {
  ad_group {
    resource_name: "customers/111111/adGroups/111111"
    id: 111111
    name: "250404"
    status: ENABLED
    type_: DISPLAY_STANDARD
    base_ad_group: "customers/111111/adGroups/111111"
    campaign: "customers/111111/campaigns/111111"
    cpc_bid_micros: 100000
    cpm_bid_micros: 10000
    target_cpa_micros: 0
    cpv_bid_micros: 0
    target_cpm_micros: 10000
    optimized_targeting_enabled: true
    targeting_setting {
      target_restrictions {
        targeting_dimension: PLACEMENT
        bid_only: false
      }
      target_restrictions {
        targeting_dimension: TOPIC
        bid_only: false
      }
      target_restrictions {
        targeting_dimension: AUDIENCE
        bid_only: false
      }
      target_restrictions {
        targeting_dimension: GENDER
        bid_only: true
      }
      target_restrictions {
        targeting_dimension: AGE_RANGE
        bid_only: true
      }
      target_restrictions {
        targeting_dimension: PARENTAL_STATUS
        bid_only: true
      }
      target_restrictions {
        targeting_dimension: INCOME_RANGE
        bid_only: true
      }
    }
    audience_setting {
    }
    effective_target_cpa_micros: 0
    primary_status: NOT_ELIGIBLE
  }
}
```


```
results {
  ad_group {
    resource_name: "customers/111111/adGroups/222222"
    id:  222222
    name: "250404"
    status: ENABLED
    type_: DISPLAY_STANDARD
    base_ad_group: "customers/111111/adGroups/ 222222  "
    campaign: "customers/111111/campaigns/111111"
    cpc_bid_micros: 100000
    cpm_bid_micros: 10000
    target_cpa_micros: 0
    cpv_bid_micros: 0
    target_cpm_micros: 10000
    optimized_targeting_enabled: true
    targeting_setting {
      target_restrictions {
        targeting_dimension: PLACEMENT
        bid_only: false
      }
      target_restrictions {
        targeting_dimension: TOPIC
        bid_only: false
      }
      target_restrictions {
        targeting_dimension: AUDIENCE
        bid_only: false
      }
      target_restrictions {
        targeting_dimension: GENDER
        bid_only: true
      }
      target_restrictions {
        targeting_dimension: AGE_RANGE
        bid_only: true
      }
      target_restrictions {
        targeting_dimension: PARENTAL_STATUS
        bid_only: true
      }
      target_restrictions {
        targeting_dimension: INCOME_RANGE
        bid_only: true
      }
    }
    effective_target_cpa_micros: 0
    primary_status: NOT_ELIGIBLE
  }
}
```

The `audience_setting` field is empty in one ad_group but not in another ad_group. Does this affect the final presentation of the ad_group? How should we set an empty object when creating an ad_group?

Google Ads API and AdWords API Forum

unread,
Apr 18, 2025, 5:02:40 PMApr 18
to Google Ads API and AdWords API Forum
Hi,

Thank you for reaching out to the Google Ads API support team.

I understand that you want to set an empty audience_setting object when creating an ad_group via API. Could you please provide us with the complete API logs (request and response with request-id and request header) generated at your end while fetching the existing ad_group and creating a new ad_group via API. This would help us understand the issue and assist you accordingly.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java.NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this 'googleadsa...@google.com'.

Regards, 
Google Ads API Team.

Reply all
Reply to author
Forward
0 new messages