Hi,
The mobile bid modifier in AdWords is from 0.0 to 4.0. On UI, this
corresponds to -100% to +300%. So yes, you have to multiply by 100 and
offset by 100 to map the API value to UI values.
Cheers,
Anash P. Oommen,
AdWords API Advisor.
On Tuesday, November 5, 2013 4:02:09 AM UTC-5, MWA wrote:
>
> Hi there,
>
> What I see at the interface is when it sets the mobile/Geo bid in
> percentage, say +2% makes the 'bidModifier' totally different from the one
> we are trying to set Via API,
> Should I have to multiply the percentage to the maxCpc? but how to get
> cmapaign level maxCPC starting bid for as I have gone though the document,
> it is obtained on adGroup/criterion level.
>
> $campaignCriterionService =
> $user->GetService('CampaignCriterionService', ADWORDS_VERSION);
> $bidModifier = $values['bidModifier'];
>
> $bidModifier = doubleval(1+($bidModifier/100));
>
> $id = $values['id'];
>
> $criterionObj = new Platform();
> $criterionObj->id = $id;
>
>
> $criterion = new CampaignCriterion();
> $criterion->campaignId = $campaignId;
> $criterion->criterion = $criterionObj;
> $criterion->bidModifier = "+".$bidModifier."%";
>
> // Create SET operation.
> $operation = new CampaignCriterionOperation();
> $operation->operator = "SET";
> $operation->operand = $criterion;
>
> // Update campaign criteria.
> $results = $campaignCriterionService->mutate(array($operation));
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.