Hi Google,

I create an ad group like the below its wonderful.  Wat is not wonderful is 
how to use the api to get *microAmount that I set for the adgroup?  One 
would think I just ad a ad group to and ad group selector given and 
ad_group id but one would be wrong.  So How? *

operations = [

            {

              *'operator'*: *'ADD'*,

              *'operand'*: {

                  *'campaignId'*: campaign_id,

                  *'name'*: adgroup_hash[*'name'*],

                  *'status'*: adgroup_hash[*'status'*],

                  *'biddingStrategyConfiguration'*: {

                      *'bids'*: [

                          {

                              *'xsi_type'*: *'CpcBid'*,

                              *'bid'*: {

                                  *'microAmount'*: 1111111111

                              }

                          }

                      ]

                  }

              }

            }

        ]

        

        adgroups = *self*.adgroup_service.mutate(operations)

        

Here is how I get an adroup:


def *get_adroups*(*self*,campaign_id):

        

          # Construct selector and get all ad groups.

        offset = 0

        selector = {

            *'fields'*: [*'Id'*, *'Name'*, *'Status'*],

            *'predicates'*: [

                {

                    *'field'*: *'CampaignId'*,

                    *'operator'*: *'EQUALS'*,

                    *'values'*: [campaign_id]

                }

            ],

            *'paging'*: {

                *'startIndex'*: str(offset),

                *'numberResults'*: str(*self*.PAGE_SIZE)

            }

        }

        page = *self*.adgroup_service.get(selector)


        total_num_entries = page[*'totalNumEntries'*]

        #print('total_num_entries:',total_num_entries) 

        meta = {}

        for entry in page[*'entries'*]:

            meta[entry[*'name'*]] = entry

        

        return meta

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/95c9d776-cf0f-4157-9fc7-bcdba4f6d6can%40googlegroups.com.

Reply via email to